From 9fa0d7c96b35fed0d267430b379bbbbf24a74d1b Mon Sep 17 00:00:00 2001 From: Peter Siemens Date: Tue, 3 Dec 2024 13:48:10 -0800 Subject: [PATCH] Populate enviroment --- .github/workflows/deploy-staging.yml | 5 +++++ 1 file changed, 5 insertions(+) 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