using the SA #16
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: Push and Deploy to Cloud Run | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
setup-build-deploy: | |
name: Setup, Build and Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- name: Checkout | |
uses: 'actions/checkout@v4' | |
- name: Setup Workload Identity Federation | |
uses: google-github-actions/auth@v2 | |
with: | |
workload_identity_provider: 'projects/dse-nps/locations/global/workloadIdentityPools/github/providers/oidc-provider' | |
project_id: 'dse-nps' | |
audience: '[email protected]' | |
service_account: '[email protected]' | |
- name: Build and Deploy | |
run: | | |
gcloud builds describe '123-456-789' |