Skip to content

Commit

Permalink
CLIP-1832: Install the latest Terraform on e2e tf deployment runner c…
Browse files Browse the repository at this point in the history
…ontainer. (#700)
  • Loading branch information
yzha645 authored Oct 23, 2023
1 parent 9d4536c commit 490e1b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/e2e-tf-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ jobs:
fetch-depth: 0
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 490e1b6

Please sign in to comment.