Skip to content

Commit be8e3b3

Browse files
authored
Merge pull request #201 from smaeda-ks/patch-1
Use new Hashicorp Releases API
2 parents f03c210 + 42ae509 commit be8e3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/tools.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN az aks install-cli \
3030

3131
# Download the latest terraform (AMD64), install to global environment.
3232
RUN gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B36CBA91A2C0730C435FC280B0B441097685B676 \
33-
&& TF_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M ".current_version") \
33+
&& TF_VERSION=$(curl -s https://api.releases.hashicorp.com/v1/releases/terraform/latest | jq -r -M ".version") \
3434
&& wget -nv -O terraform.zip https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip \
3535
&& wget -nv -O terraform.sha256 https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_SHA256SUMS \
3636
&& wget -nv -O terraform.sha256.sig https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_SHA256SUMS.sig \

0 commit comments

Comments
 (0)