Skip to content

Update to bookworm #257

Update to bookworm

Update to bookworm #257

Workflow file for this run

---
name: 📦 Build Packer Images
on: [push]
jobs:
shellcheck:
name: Shell script linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: --exclude SC3043
ansible-lint:
name: Ansible linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run ansible-lint
uses: ansible/ansible-lint-action@v6.11.0
packer-build:
runs-on: ubuntu-latest
# TODO split to separate Workflow, check status via GitHub API
# https://github.com/asarkar/build-time-tracker/blob/v3.0.1/.github/workflows/publish.yml#L19-L23
needs:
- shellcheck
- ansible-lint
steps:
- uses: actions/checkout@v3
- name: Install packer dependencies
run: sudo apt-get update && sudo apt-get install --no-install-recommends qemu qemu-utils qemu-kvm qemu-system-aarch64 qemu-efi-aarch64
env:
DEBIAN_FRONTEND: noninteractive
- name: Install packer
run: wget --no-verbose http://http.us.debian.org/debian/pool/main/p/packer/packer_1.6.6+ds1-2+b3_amd64.deb && sudo dpkg -i packer_1.6.6+ds1-2+b3_amd64.deb
- name: Build packer image
run: /usr/bin/packer build debian-arm64.json
- name: Build packer image with debug info (on build failure)
if: ${{ failure() }}
run: /usr/bin/packer build debian-arm64.json
env:
PACKER_LOG: 1
- name: Upload raw qemu image
uses: actions/upload-artifact@v2
with:
name: debian-arm64.img
path: output-qemu/debian-arm64