set env #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Images | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install apt dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install fdisk gdisk qemu-user-static libarchive-tools tar | |
- name: Install packer-builder-arm | |
run: | | |
mkdir -p $HOME/.config/packer/plugins | |
cd $HOME/.config/packer/plugins | |
git clone https://github.com/mkaczanowski/packer-builder-arm | |
cd packer-builder-arm | |
go mod download | |
go build -v . | |
- name: Packer init | |
run: | | |
sudo packer init "$GITHUB_WORKSPACE/packer/" | |
- name: Build images | |
run: | | |
sudo packer build "$GITHUB_WORKSPACE/packer/" | |
env: | |
PACKER_PLUGIN_PATH: $HOME/.config/packer/plugins | |