Lots of other, small quality of life improvements to build process Output of build serial console to artifacts upon failure Reducing verbosity of Packer, now that serial output is captured Fixed sizing problems with the boot partitions of Ubuntu versions Use of Mac builders for Virtualbox targets Updating Ubuntu builders to 22.04, as well
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
name: Install Packer
|
|
description: Installs the packerio executable and its attendant tools to /usr/local/bin
|
|
for Ubuntu hosts
|
|
inputs:
|
|
version:
|
|
description: Version of Packer to install
|
|
required: true
|
|
default: "1.8.0"
|
|
pup_version:
|
|
description: Version of Pup to install
|
|
required: true
|
|
default: "v0.4.0"
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- shell: bash
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
set -exo pipefail
|
|
# Install virtualbox
|
|
sudo apt-get update
|
|
# Install QEmu, etc
|
|
sudo apt-get install -y unzip python3-{virtualenv,yaml} cloud-utils xorriso qemu-system-{x86,ppc}
|
|
# Install packer.io
|
|
curl -O https://releases.hashicorp.com/packer/${{ inputs.version }}/packer_${{ inputs.version }}_linux_amd64.zip
|
|
unzip -o packer_${{ inputs.version }}_linux_amd64.zip -d /usr/local/bin
|
|
chmod +x /usr/local/bin/packer
|
|
# Install pup
|
|
curl -L -o pup.zip "https://github.com/ericchiang/pup/releases/download/${{ inputs.pup_version }}/pup_${{ inputs.pup_version }}_linux_amd64.zip"
|
|
sudo unzip pup.zip -d /usr/local/bin
|
|
sudo chmod +x /usr/local/bin/pup
|
|
- shell: bash
|
|
if: runner.os == 'macOS'
|
|
run: |
|
|
set -exo pipefail
|
|
brew install pup dvdrtools xorriso coreutils gsed
|
|
# Packer is already installed
|