Correction deploy template Github Actions. #2
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 Dataflow Flex Template | |
on: | |
push: | |
branches: [ main, feature/* ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
deploy-template: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v3' | |
- name: 'Google auth' | |
id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
workload_identity_provider: 'projects/975119474255/locations/global/workloadIdentityPools/github-actions-ci-cd-pool/providers/github-actions-ci-cd-provider' | |
service_account: 'sa-dataflow-dev@gb-poc-373711.iam.gserviceaccount.com' | |
- name: 'Set up Cloud SDK' | |
uses: 'google-github-actions/setup-gcloud@v1' | |
with: | |
version: '>= 444.0.0' | |
- name: 'Use gcloud CLI' | |
run: 'gcloud info' |