mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-23 00:50:48 +00:00
Break out the curl cache creation into its own step
Co-authored-by: Nick M. <50747025+mcdonnnj@users.noreply.github.com>
This commit is contained in:
parent
106af21c04
commit
c481043981
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -60,9 +60,10 @@ jobs:
|
||||||
id: go-cache
|
id: go-cache
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=dir::$(go env GOCACHE)"
|
echo "::set-output name=dir::$(go env GOCACHE)"
|
||||||
|
- name: Setup curl cache
|
||||||
|
run: mkdir -p ${{ env.CURL_CACHE_DIR }}
|
||||||
- name: Install Packer
|
- name: Install Packer
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ${{ env.CURL_CACHE_DIR }}
|
|
||||||
PACKER_ZIP="packer_${PACKER_VERSION}_linux_amd64.zip"
|
PACKER_ZIP="packer_${PACKER_VERSION}_linux_amd64.zip"
|
||||||
curl --output ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
|
curl --output ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
|
||||||
--time-cond ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
|
--time-cond ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
|
||||||
|
@ -72,7 +73,6 @@ jobs:
|
||||||
${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}"
|
${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}"
|
||||||
- name: Install Terraform
|
- name: Install Terraform
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ${{ env.CURL_CACHE_DIR }}
|
|
||||||
TERRAFORM_ZIP="terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
|
TERRAFORM_ZIP="terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
|
||||||
curl --output ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \
|
curl --output ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \
|
||||||
--time-cond ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \
|
--time-cond ${{ env.CURL_CACHE_DIR }}/"${TERRAFORM_ZIP}" \
|
||||||
|
|
Loading…
Reference in a new issue