Do some better linting (#13)
* Do some better linting * Update names, Packer version, and more * Do not lint on push * More linting and scripting * Cleanup shellcheck lint * Add Packer format check * Fix Packer formatting * Limit to only one * Remove generated HCL files * Only lint checked files * Use pipes instead * Improve attempt to build Actually go back to attempting to build boxes on GitHub. Maybe it will work better with this structure * Change to using environment files * Initialize plugins, first * More verbose usage of the file * Do the output properly this time * PACKER_LOG set to 1 * No need for python3 anymore * Limit to only one result * Choose a specific CPU model * Init separately * Update actions version * Add version outputting * Correct actions version * Try to execute qemu properly * Fix CPU model name * Do not over-subscribe GitHub runners * Try type instead of command to guard runs * Do not write to non-existent folder * Cache packer plugins * Use ~ instead of /home/greg * Try the proper path * Move to intelligent matrix * Set global env path * Add lots of waits for VBoxManage on hosted runners * Add more waits * Add more waits
This commit is contained in:
@@ -5,7 +5,7 @@ inputs:
|
||||
version:
|
||||
description: Version of Packer to install
|
||||
required: true
|
||||
default: "1.9.2"
|
||||
default: "1.9.4"
|
||||
pup_version:
|
||||
description: Version of Pup to install
|
||||
required: true
|
||||
@@ -21,7 +21,7 @@ runs:
|
||||
# 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} vagrant
|
||||
sudo apt-get install -y unzip cloud-utils xorriso qemu-system-{x86,ppc} vagrant
|
||||
# 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
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
name: Setup environment
|
||||
description: Sets up some basic components of the environment
|
||||
inputs:
|
||||
ansible:
|
||||
description: Install Ansible as well
|
||||
required: false
|
||||
default: false
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Install Python 3
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3"
|
||||
- name: Setup pip cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: ${{ runner.os }}-pip
|
||||
- name: Install Pip and tox
|
||||
shell: bash
|
||||
run: |
|
||||
set -exo pipefail
|
||||
python3 -m pip install -U pip
|
||||
pip install -U wheel
|
||||
pip install -U tox
|
||||
- name: Install Ansible
|
||||
if: inputs.ansible == 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
set -exo pipefail
|
||||
pip install -U ansible
|
||||
ansible-galaxy collection install -r ansible/requirements.yml
|
||||
Reference in New Issue
Block a user