ci: pin packer version and update plugin for the local run (#4696)

This commit is contained in:
openoms 2024-08-15 15:22:12 +02:00 committed by GitHub
parent eaea2982ef
commit 109cbf573b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ echo -e "\n# Install Packer..."
if ! packer version 2>/dev/null; then
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository -y "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update -y && sudo apt-get install packer -y || exit 1
sudo apt-get update -y && sudo apt-get install packer=1.10.0-1 -y || exit 1
else
echo "# Packer is installed"
fi
@ -52,7 +52,7 @@ echo -e "\n# Download the packer-builder-arm plugin"
git clone https://github.com/mkaczanowski/packer-builder-arm
cd packer-builder-arm
# https://github.com/mkaczanowski/packer-builder-arm/releases
git reset --hard "v1.0.7"
git reset --hard "v1.0.9"
echo -e "\n# Build the packer-builder-arm plugin"
go mod download
go build || exit 1