Skip to content

Commit

Permalink
Attempt to fix env var command
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Dec 3, 2024
1 parent 04df5dd commit 9429a97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 9429a97

Please sign in to comment.