-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use github action to install terraform in pipeline
- Loading branch information
Showing
3 changed files
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,6 @@ elif [ "$action" = "tools" ]; then | |
|
||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
go install github.com/hashicorp/terraform-plugin-docs/cmd/[email protected] | ||
|
||
# if terraform binary not available then download it | ||
if ! which terraform; then | ||
# terraform binary is only available as zip, not .tgz | ||
mkdir -p bin | ||
curl -o bin/terraform.zip -J https://releases.hashicorp.com/terraform/1.10.2/terraform_1.10.2_linux_amd64.zip | ||
unzip -d bin bin/terraform.zip | ||
fi | ||
else | ||
echo "Invalid action: '$action', please use $0 help for help" | ||
fi |