Skip to content

Commit

Permalink
IEN HOTFIX | terraform command not found on github action env (#663)
Browse files Browse the repository at this point in the history
* put log

* put log

* upgrade version 4

* add setup terraform

* remove log

* add setup terraform to all env

* revert to v3

---------

Co-authored-by: Jerry Wang <jerryappleid761208@gmail.com>
  • Loading branch information
jerry-ey and c1495616js authored Oct 15, 2024
1 parent 9008ca0 commit 66b786e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
with:
role-to-assume: ${{secrets.AWS_SA_ROLE_ARN}}
aws-region: ca-central-1

- name: setup terraform
uses: hashicorp/setup-terraform@v3

- name: Terraform apply
run: make apply
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
role-to-assume: ${{secrets.AWS_SA_ROLE_ARN}}
aws-region: ca-central-1

- name: setup terraform
uses: hashicorp/setup-terraform@v3

- name: Terraform apply
run: make apply

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
with:
role-to-assume: ${{secrets.AWS_SA_ROLE_ARN}}
aws-region: ca-central-1

- name: setup terraform
uses: hashicorp/setup-terraform@v3

- name: Setup Infra
run: make apply
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-check-tf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
role-to-assume: ${{secrets.AWS_SA_ROLE_ARN}}
aws-region: ca-central-1

- name: setup terraform
uses: hashicorp/setup-terraform@v3

- name: Terraform Plan
id: plan
run: make plan
Expand Down

0 comments on commit 66b786e

Please sign in to comment.