Skip to content

Commit

Permalink
Set Docker tag to staging-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Dec 5, 2024
1 parent be0c967 commit d166614
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ jobs:
- name: Update environment variables
run: ssh staging 'export $(gcloud secrets versions access latest --secret="ubyssey_env_configs" | xargs)'

- name: Set tag in docker-compose.yml
run: sed -i "s/\${TAG}/${{ github.ref }}/" docker-compose.yml
# TODO: Fix this
# - name: Set tag in docker-compose.yml
# run: sed -i "s/\${TAG}/${{ github.ref }}/" docker-compose.yml

- name: Update docker-compose.yml
run: scp docker-compose.yml staging:/opt/ubyssey.ca/docker-compose.yml
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
retries: 20

django:
image: ghcr.io/ubyssey/ubyssey.ca:${TAG}
image: ghcr.io/ubyssey/ubyssey.ca:staging-deploy
command: >
bash -c "python manage.py migrate
&& gunicorn ubyssey.wsgi:application --bind 0.0.0.0:8000"
Expand Down

0 comments on commit d166614

Please sign in to comment.