From d16661421c088468126757adac9b960043d97211 Mon Sep 17 00:00:00 2001 From: Peter Siemens Date: Wed, 4 Dec 2024 19:02:29 -0800 Subject: [PATCH] Set Docker tag to staging-deploy --- .github/workflows/deploy-staging.yml | 5 +++-- docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index dca817aa9..33834ead0 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 1a99a476f..915e65b2b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"