Skip to content

Commit 7a74868

Browse files
committed
Add workflow to push to Docker Hub
1 parent 39d67c4 commit 7a74868

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy to staging
2+
on:
3+
push:
4+
branches:
5+
- chore/github-actions
6+
jobs:
7+
push_to_registry:
8+
name: Push Docker image to Docker Hub
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out the repo
12+
uses: actions/checkout@v2
13+
- name: Push to Docker Hub
14+
uses: docker/build-push-action@v1
15+
with:
16+
username: ${{ secrets.DOCKER_USERNAME }}
17+
password: ${{ secrets.DOCKER_PASSWORD }}
18+
repository: ${{ secrets.DOCKER_USERNAME }}/p5.js-web-editor-staging
19+
tag_with_ref: true
20+
target: production
21+

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ services:
4141
- ML5_EXAMPLES_USERNAME
4242
- ML5_EXAMPLES_PASS
4343
- ML5_EXAMPLES_EMAIL
44+
- UI_ACCESS_TOKEN_ENABLED
45+
- UPLOAD_LIMIT
46+
- TRANSLATIONS_ENABLED
4447
# you can either set this in your .env or as an environment variables
4548
# or here YOU CHOOSE
4649
# - MONGO_URL=mongodb://mongo:27017/p5js-web-editor

0 commit comments

Comments
 (0)