diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 5d28b47ab..fe554505e 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -68,6 +68,11 @@ jobs: SSH_KEY: ${{ secrets.GCP_SSH_PRIVATE_KEY_STAGING }} SSH_HOST: ${{ secrets.GCP_SSH_HOST_STAGING }} + - name: Update environment variables + run: export $(gcloud secrets versions access latest --secret="$SECRET_NAME" | xargs) + env: + SECRET_NAME: ${{ secrets.GCP_ENV_CONFIGS_SECRET_NAME }} + - name: Update docker-compose.yml run: scp docker-compose.yml staging:/opt/ubyssey.ca/docker-compose.yml