Add region #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Deploy to Cloud Run from Source' | |
on: | |
push: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: 'ubuntu-latest' | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v4' | |
- id: 'auth' | |
name: 'Authenticate to Google Cloud' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
workload_identity_provider: 'projects/${{ secrets.PROJECT_NUMBER }}/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-oidc' | |
service_account: '[email protected]' | |
- name: 'Deploy to Cloud Run' | |
uses: 'google-github-actions/deploy-cloudrun@v2' | |
with: | |
job: 'fantasy-football-chat-bot' | |
source: . | |
project_id: ${{ secrets.PROJECT_ID }} | |
region: us-east1 | |
# If required, use the Cloud Run URL output in later steps | |
- name: 'Show output' | |
run: |- | |
echo ${{ steps.deploy.outputs.url }} |