Skip to content

Commit

Permalink
Add proxy for staging and prod deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Almeida committed Jun 27, 2022
1 parent 736fc4b commit a3cbd50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ jobs:
env:
PULUMI_CONFIG_PASSPHRASE: "staging"

- uses: wagnerpereira/gce-cloudsql-proxy-action@v2
with:
instance: ${{ steps.pulumi.outputs.database_instance_name }}

- name: Run database migrations
env:
DB_URL: ${{ steps.pulumi.outputs.database_url_alembic }}
Expand Down Expand Up @@ -326,6 +330,10 @@ jobs:

env:
PULUMI_CONFIG_PASSPHRASE: "production"

- uses: wagnerpereira/gce-cloudsql-proxy-action@v2
with:
instance: ${{ steps.pulumi.outputs.database_instance_name }}

- name: Run database migrations
env:
Expand Down

0 comments on commit a3cbd50

Please sign in to comment.