Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
62 lines
1.6 KiB
YAML
62 lines
1.6 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@v6
|
|
|
|
- name: Free disk space
|
|
run: |
|
|
sudo rm -rf /usr/share/dotnet
|
|
sudo rm -rf /usr/local/lib/android
|
|
sudo rm -rf /opt/ghc
|
|
sudo rm -rf /opt/hostedtoolcache
|
|
df -h
|
|
|
|
|
|
- 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 ./iso/config.toml:/config.toml:ro \
|
|
-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 \
|
|
--config /config.toml \
|
|
--output /output/ \
|
|
ghcr.io/humocs-man/fluffy-pancake:stable
|
|
|
|
- name: Upload ISO artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: installer-iso
|
|
path: output/**/*.iso
|
|
if-no-files-found: error
|