From 9429a97cd489a760fcbb8d5b441c177bbb1ce487 Mon Sep 17 00:00:00 2001 From: Peter Siemens Date: Tue, 3 Dec 2024 14:02:54 -0800 Subject: [PATCH] Attempt to fix env var command --- .github/workflows/deploy-staging.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index f2813a71f..3f480d83c 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -68,11 +68,11 @@ jobs: SSH_KEY: ${{ secrets.GCP_SSH_PRIVATE_KEY_STAGING }} SSH_HOST: ${{ secrets.GCP_SSH_HOST_STAGING }} - # - name: Update environment variables - # run: ssh staging 'export $(gcloud secrets versions access latest --secret="${{ secrets.GCP_ENV_CONFIGS_SECRET_NAME }}" | xargs)' + - name: Update environment variables + run: ssh staging 'export $(gcloud secrets versions access latest --secret="ubyssey_env_configs" | xargs)' - # - name: Update docker-compose.yml - # run: scp docker-compose.yml staging:/opt/ubyssey.ca/docker-compose.yml + - name: Update docker-compose.yml + run: scp docker-compose.yml staging:/opt/ubyssey.ca/docker-compose.yml - name: Restart services run: ssh staging 'docker compose -f /opt/ubyssey.ca/docker-compose.yml -p ubyssey up -d'