Skip to content

Commit e3ee5a5

Browse files
committed
Update when workflows are triggered. Bump hashicorp/setup-terraform version to v3.
1 parent 3162008 commit e3ee5a5

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/deploy-gcp.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
name: Terraform Deployment
1+
name: Deploy cloud resources on GCP using Terraform
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
workflow_dispatch:
8-
branches:
9-
- main
104
workflow_run:
115
workflows: ["Build and Push to Google Cloud"]
126
types:
@@ -24,8 +18,8 @@ env:
2418
TAG: latest
2519

2620
jobs:
27-
build-and-push:
28-
name: Build and Push Docker Image
21+
deploy-gcp-resources:
22+
name: Deploy cloud resources on GCP using Terraform
2923
runs-on: ubuntu-latest
3024

3125
steps:
@@ -40,10 +34,10 @@ jobs:
4034
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
4135

4236
- name: Setup Terraform
43-
uses: hashicorp/setup-terraform@v1
37+
uses: hashicorp/setup-terraform@v3
4438
with:
4539
terraform_version: 1.10.5
46-
40+
4741
- name: Terraform init and validate
4842
run: |
4943
terraform -chdir=infra/gcp init

0 commit comments

Comments
 (0)