From b5ab1aa956909d732eddd8ace5c8e2126c9bf06e Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Fri, 15 Sep 2023 12:40:59 -0400 Subject: [PATCH] Add tasks to install Packer plugins These tasks must take place before packer build is run. --- .github/workflows/build.yml | 2 ++ .github/workflows/prerelease.yml | 2 ++ .github/workflows/release.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60ff945f..7cd4024a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -225,6 +225,8 @@ jobs: sudo mv /usr/bin/python3 /usr/bin/python3-default sudo ln -s ${{ env.pythonLocation }}/bin/python3 \ /usr/bin/python3 + - name: Install Packer plugins + run: packer init src/packer.pkr.hcl - name: Create machine image # This runs through the AMI creation process but does not # actually create an AMI diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index ddb47693..ee0ed592 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -80,6 +80,8 @@ jobs: sudo mv /usr/bin/python3 /usr/bin/python3-default sudo ln -s ${{ env.pythonLocation }}/bin/python3 \ /usr/bin/python3 + - name: Install Packer plugins + run: packer init src/packer.pkr.hcl - name: Create machine image env: GITHUB_IS_PRERELEASE: ${{ github.event.release.prerelease }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f184bcc..df13aecb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,6 +95,8 @@ jobs: sudo mv /usr/bin/python3 /usr/bin/python3-default sudo ln -s ${{ env.pythonLocation }}/bin/python3 \ /usr/bin/python3 + - name: Install Packer plugins + run: packer init src/packer.pkr.hcl - name: Create machine image run: | packer build -timestamp-ui \