1
0
Fork 0
mirror of https://github.com/cisagov/log4j-affected-db.git synced 2024-11-22 16:40:48 +00:00

Use setup-env outputs for Packer version

We use a `PACKER_VERSION` environment variable for the "Install Packer" step
that is populated from the `setup-env` outputs to get around `yamllint` lint
length limits.
This commit is contained in:
Nicholas McDonnell 2021-10-01 11:03:19 -04:00
parent 1e16136272
commit 64b24714ac
No known key found for this signature in database
GPG key ID: 7994ADE2A56BE5D1

View file

@ -43,7 +43,7 @@ jobs:
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\ BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
py${{ steps.setup-python.outputs.python-version }}-\ py${{ steps.setup-python.outputs.python-version }}-\
go${{ env.GO_VERSION }}-\ go${{ env.GO_VERSION }}-\
packer${{ env.PACKER_VERSION }}-\ packer${{ steps.setup-env.outputs.packer-version }}-\
tf${{ steps.setup-env.outputs.terraform-version }}-" tf${{ steps.setup-env.outputs.terraform-version }}-"
with: with:
# Note that the .terraform directory IS NOT included in the # Note that the .terraform directory IS NOT included in the
@ -66,6 +66,8 @@ jobs:
- name: Setup curl cache - name: Setup curl cache
run: mkdir -p ${{ env.CURL_CACHE_DIR }} run: mkdir -p ${{ env.CURL_CACHE_DIR }}
- name: Install Packer - name: Install Packer
env:
PACKER_VERSION: ${{ steps.setup-env.outputs.packer-version }}
run: | run: |
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}" \