2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2020-03-04 15:42:36 +01:00
|
|
|
################################################################################
|
|
|
|
|
## File: packer.sh
|
|
|
|
|
## Desc: Installs packer
|
|
|
|
|
################################################################################
|
2020-09-17 14:15:31 +03:00
|
|
|
|
2020-03-04 15:42:36 +01:00
|
|
|
# Install Packer
|
|
|
|
|
PACKER_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r .current_version)
|
|
|
|
|
curl -LO "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip"
|
2021-03-31 16:07:25 +03:00
|
|
|
unzip -qq "packer_${PACKER_VERSION}_linux_amd64.zip" -d /usr/local/bin
|
2020-03-04 15:42:36 +01:00
|
|
|
rm -f "packer_${PACKER_VERSION}_linux_amd64.zip"
|
|
|
|
|
|
2020-12-25 18:03:35 +03:00
|
|
|
invoke_tests "Tools" "Packer"
|