Skip to content

Commit

Permalink
fix(ci): allow environment variables to flow into cloud run
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Jun 27, 2023
1 parent d2d821f commit 4119b3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
vpc:
description: gcp vpc name
required: true
environment_variables:
description: key=value pairs to pass to cloud run
required: false
repo_token:
description: GitHub token (e.g. secrets.GITHUB_TOKEN). This is only required if preview == 'yes' or if you are passing a value to service_now_system_id.
required: false
Expand Down Expand Up @@ -91,8 +94,7 @@ runs:
service: conductor
image: ${{ env.IMAGE_ID }}
region: us-central1
env_vars: |
PORTER_DEVELOPMENT=1
env_vars: ${{ inputs.environment_variables }}
secrets: |
/secrets/db/connection=conductor-connections:latest
/secrets/sheets/service-account=stewardship-sa:latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
service_account_email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project_id: ${{ secrets.PROJECT_ID }}
vpc: ${{ secrets.VPC }}
environment_variables: PORTER_DEVELOPMENT=1

deploy-prod:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4119b3f

Please sign in to comment.