Skip to content

Commit

Permalink
ci(backup): pass required env vars to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Sep 27, 2024
1 parent 294caa9 commit 57ea1e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/deploy-cloudrun/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ inputs:
github_token:
description: 'The GitHub token'
required: true
agol_org:
description: 'The ArcGIS Online organization'
required: true
tag_name:
description: 'The tag name'
required: true

runs:
using: composite
Expand Down Expand Up @@ -82,6 +88,9 @@ runs:
timeout: 60m
secrets: |
/secrets/app/secrets.json=secrets:latest
env_vars: |-
AGOL_ORG=${{ inputs.agol_org }}
TAG_NAME=${{ inputs.tag_name }}
flags: |
--memory=512Mi
--service-account=cloud-run-sa@${{ inputs.project_id }}.iam.gserviceaccount.com
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,5 @@ jobs:
service_account_email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
pause_schedule_job: 'yes'
github_token: ${{ secrets.GITHUB_TOKEN }}
agol_org: ${{ vars.AGOL_ORG }}
tag_name: ${{ vars.TAG_NAME }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
identity_provider: ${{ secrets.IDENTITY_PROVIDER }}
service_account_email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
github_token: ${{ secrets.GITHUB_TOKEN }}
agol_org: ${{ vars.AGOL_ORG }}
tag_name: ${{ vars.TAG_NAME }}

deploy-firebase-prod:
name: Deploy Firebase project to production
Expand Down

0 comments on commit 57ea1e5

Please sign in to comment.