mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
15 lines
587 B
Bash
15 lines
587 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: install-terraform.sh
|
|
## Desc: Install terraform
|
|
################################################################################
|
|
|
|
source $HELPER_SCRIPTS/install.sh
|
|
|
|
# Install Terraform
|
|
download_url=$(curl -fsSL https://api.releases.hashicorp.com/v1/releases/terraform/latest | jq -r '.builds[] | select((.arch=="amd64") and (.os=="linux")).url')
|
|
archive_path=$(download_with_retry "${download_url}")
|
|
unzip -qq "$archive_path" -d /usr/local/bin
|
|
|
|
invoke_tests "Tools" "Terraform"
|