Skip to content

Commit f4893af

Browse files
authored
Merge pull request #1510 from flux-iac/fix/setup-terraform
fix(ci): setup terraform
2 parents 7ca23dc + 7e13574 commit f4893af

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build-and-publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
export TF_VERSION=1.3.9
3131
wget https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip
3232
unzip -q terraform_${TF_VERSION}_linux_amd64.zip
33-
mv terraform $(which terraform)
33+
mv terraform /usr/local/bin
3434
terraform --version
3535
- name: Set up yq
3636
uses: frenck/action-setup-yq@c4b5be8b4a215c536a41d436757d9feb92836d4f # v1.0.2

.github/workflows/targeted-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
export TF_VERSION=1.3.9
2727
wget https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip
2828
unzip -q terraform_${TF_VERSION}_linux_amd64.zip
29-
mv terraform $(which terraform)
29+
mv terraform /usr/local/bin
3030
terraform --version
3131
- name: Setup Kustomize
3232
if: "!github.event.pull_request.head.repo.fork"

.github/workflows/test.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
export TF_VERSION=1.3.9
7272
wget https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip
7373
unzip -q terraform_${TF_VERSION}_linux_amd64.zip
74-
mv terraform $(which terraform)
74+
mv terraform /usr/local/bin
7575
terraform --version
7676
- name: Setup Kustomize
7777
if: "!github.event.pull_request.head.repo.fork"
@@ -98,7 +98,7 @@ jobs:
9898
export TF_VERSION=1.3.9
9999
wget https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip
100100
unzip -q terraform_${TF_VERSION}_linux_amd64.zip
101-
mv terraform $(which terraform)
101+
mv terraform /usr/local/bin
102102
terraform --version
103103
- name: Setup Kustomize
104104
if: "!github.event.pull_request.head.repo.fork"

0 commit comments

Comments
 (0)