49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Build Installer ISO
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-iso:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Prepare output directory
|
|
run: mkdir -p output
|
|
|
|
# Wichtig: Den Pull explizit machen, damit Layer im lokalen Storage landen
|
|
- name: Pull base image
|
|
run: |
|
|
# Falls das Image privat ist, hier ein 'sudo podman login' davor setzen
|
|
sudo podman pull ghcr.io/humocs-man/fluffy-pancake:stable
|
|
|
|
- name: Build ISO (Interactive Mode)
|
|
run: |
|
|
# Wir mounten /var/lib/containers/storage, damit der Builder
|
|
# das oben gepullte Image direkt findet.
|
|
sudo podman run --rm --privileged \
|
|
-v ./output:/output \
|
|
-v /var/lib/containers/storage:/var/lib/containers/storage \
|
|
quay.io/centos-bootc/bootc-image-builder:latest \
|
|
--type anaconda-iso \
|
|
--rootfs btrfs
|
|
--output /output/ \
|
|
ghcr.io/humocs-man/fluffy-pancake:stable
|
|
|
|
- name: Upload ISO artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: installer-iso
|
|
path: output/**/disk.iso
|
|
if-no-files-found: error
|