Skip to content

Commit

Permalink
CLIP-1832: Install the latest Terraform on runner container. (#342)
Browse files Browse the repository at this point in the history
Co-authored-by: Yifei Zhang <[email protected]>
  • Loading branch information
yzha645 and yzhangat authored Oct 23, 2023
1 parent 1054d2e commit 9677198
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/e2e-test-no-domain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install the latest Terraform
run: |
# check existing version
terraform -version
# download the latest
URL=$(curl -fsSL https://api.releases.hashicorp.com/v1/releases/terraform/latest | jq -r '.builds[] | select((.arch=="amd64") and (.os=="linux")).url')
curl -s -o /tmp/terraform.zip ${URL}
echo yes | unzip /tmp/terraform.zip -d /usr/local/bin/
rm /tmp/terraform.zip
# check the latest version
terraform -version
- name: Pin Kubectl version
uses: azure/[email protected]
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/e2e-test-with-domain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Install the latest Terraform
run: |
# check existing version
terraform -version
# download the latest
URL=$(curl -fsSL https://api.releases.hashicorp.com/v1/releases/terraform/latest | jq -r '.builds[] | select((.arch=="amd64") and (.os=="linux")).url')
curl -s -o /tmp/terraform.zip ${URL}
echo yes | unzip /tmp/terraform.zip -d /usr/local/bin/
rm /tmp/terraform.zip
# check the latest version
terraform -version
- name: Pin Kubectl version
uses: azure/[email protected]
with:
Expand Down

0 comments on commit 9677198

Please sign in to comment.