From 101153954e57f9a230507d3458da41b607e54370 Mon Sep 17 00:00:00 2001 From: Aleksandr Mezin Date: Mon, 26 Feb 2024 01:45:21 +0200 Subject: [PATCH] Install vagrant & packer from Hashicorp repo --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 771120a..0b7782e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,9 +36,14 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - - uses: hashicorp/setup-packer@v2.0.1 + - run: >- + wget -O- https://apt.releases.hashicorp.com/gpg + | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg + - run: >- + echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" + | sudo tee /etc/apt/sources.list.d/hashicorp.list - run: sudo apt-get update - - run: sudo apt-get install -y --no-install-recommends vagrant libvirt-dev debian-archive-keyring ca-certificates + - run: sudo apt-get install -y --no-install-recommends vagrant packer libvirt-dev debian-archive-keyring ca-certificates - run: vagrant plugin install vagrant-libvirt - run: >- echo