Files
fluffy-pancake/.github/workflows/build-installer-iso.yml
T

58 lines
1.6 KiB
YAML

name: Build Installer ISO
on:
workflow_dispatch:
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
sudo docker image prune -af
df -h
- name: Prepare output directory
run: mkdir -p output
- name: Login to GHCR
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | sudo podman login ghcr.io \
-u ${{ github.actor }} --password-stdin
- name: Pull base image
run: |
sudo podman pull ghcr.io/humocs-man/fluffy-pancake:stable
- name: Build ISO
run: |
sudo podman run --rm --privileged \
-v ${{ github.workspace }}/iso/config.toml:/config.toml:ro \
-v ${{ github.workspace }}/output:/output \
-v /var/lib/containers/storage:/var/lib/containers/storage \
ghcr.io/osbuild/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
# Wir suchen rekursiv nach jeder .iso Datei im output Ordner
path: output/**/*.iso
if-no-files-found: error