Files
runner-images/images/ubuntu/scripts/build/install-packer.sh
2024-04-25 12:13:07 +02:00

16 lines
618 B
Bash

#!/bin/bash -e
################################################################################
## File: install-packer.sh
## Desc: Install packer
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/install.sh
# Install Packer
download_url=$(curl -fsSL https://api.releases.hashicorp.com/v1/releases/packer/latest | jq -r '.builds[] | select((.arch=="amd64") and (.os=="linux")).url')
archive_path=$(download_with_retry "$download_url")
unzip -o -qq "$archive_path" -d /usr/local/bin
invoke_tests "Tools" "Packer"