Skip to content

Correction deploy template Github Actions. #2

Correction deploy template Github Actions.

Correction deploy template Github Actions. #2

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'