Skip to content

Commit

Permalink
ops: adjust terraform apply/plan actions
Browse files Browse the repository at this point in the history
  • Loading branch information
linderttobias committed Feb 18, 2024
1 parent b10f7e2 commit 836bad9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ jobs:
- id: 'plannerAuth'
if: github.ref != 'refs/heads/main'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1.0.0'
uses: 'google-github-actions/auth@v2.1.1'
with:
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}'
service_account: '${{ secrets.GCP_USMA_TF_PLAN }}'

- id: 'applierAuth'
if: github.ref == 'refs/heads/main'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1.0.0'
uses: 'google-github-actions/auth@v2.1.1'
with:
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}'
service_account: '${{ secrets.GCP_USMA_TF_APPLY }}'

- uses: hashicorp/setup-terraform@v1
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.4.5
terraform_version: 1.7.1

- id: fmt
name: Terraform fmt
Expand Down

0 comments on commit 836bad9

Please sign in to comment.