mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-23 00:50:48 +00:00
Use the hashicorp/setup-terraform Action
Instead of manually installing a Terraform binary we can leverage the Action provided by Hashicorp to do the same thing.
This commit is contained in:
parent
81cdb4da94
commit
f7140d8116
1 changed files with 3 additions and 11 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -75,17 +75,9 @@ jobs:
|
||||||
${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}"
|
${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}"
|
||||||
sudo mv /usr/local/bin/packer /usr/local/bin/packer-default
|
sudo mv /usr/local/bin/packer /usr/local/bin/packer-default
|
||||||
sudo ln -s /opt/packer/packer /usr/local/bin/packer
|
sudo ln -s /opt/packer/packer /usr/local/bin/packer
|
||||||
- name: Install Terraform
|
- uses: hashicorp/setup-terraform@v1
|
||||||
run: |
|
with:
|
||||||
TERRAFORM_ZIP="terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
|
terraform_version: ${{ env.TERRAFORM_VERSION }}
|
||||||
curl --output ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \
|
|
||||||
--time-cond ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \
|
|
||||||
--location \
|
|
||||||
"https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/${TERRAFORM_ZIP}"
|
|
||||||
sudo unzip -d /opt/terraform \
|
|
||||||
${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}"
|
|
||||||
sudo mv /usr/local/bin/terraform /usr/local/bin/terraform-default
|
|
||||||
sudo ln -s /opt/terraform/terraform /usr/local/bin/terraform
|
|
||||||
- name: Install shfmt
|
- name: Install shfmt
|
||||||
run: go install mvdan.cc/sh/v3/cmd/shfmt@${SHFMT_VERSION}
|
run: go install mvdan.cc/sh/v3/cmd/shfmt@${SHFMT_VERSION}
|
||||||
- name: Install Terraform-docs
|
- name: Install Terraform-docs
|
||||||
|
|
Loading…
Reference in a new issue