Files
phyllomeos/.gitea/workflows/build-iso.yaml
T
Lukas Greve 35d8879bcc
build-iso / validate (push) Successful in 12s
ci / cook (push) Successful in 13s
build-iso / build-iso (push) Successful in 25m11s
ci: build live ISO with livemedia-creator; add live-desktop recipe
2026-09-19 17:53:06 +02:00

82 lines
2.4 KiB
YAML

name: build-iso
on:
push:
branches: [main]
tags: ["v*.*.*"]
env:
FEDORA_VERSION: "44"
KICKSTART_FILE: live-desktop_44_livefs_grub_gnome_guest-agents_live
jobs:
validate:
runs-on: fedora
defaults:
run:
shell: bash
container:
image: git.phyllo.me/devops/fedora-runner-image:latest
steps:
- uses: https://git.phyllo.me/devops/checkout@v5
with:
fetch-depth: 0
- name: Install Python deps
run: pip install -r cook/requirements.txt
- name: Generate, lint, and validate dishes
run: |
cd cook
make all
build-iso:
needs: validate
runs-on: fedora
defaults:
run:
shell: bash
container:
image: git.phyllo.me/devops/fedora-runner-image:latest
privileged: true
steps:
- uses: https://git.phyllo.me/devops/checkout@v5
with:
fetch-depth: 0
- name: Install Python deps
run: pip install -r cook/requirements.txt
- name: Install build tools
run: dnf -y install lorax-lmc-novirt pykickstart livecd-tools
- name: Generate dishes
run: |
cd cook
make all
- name: Build ISO with livemedia-creator
run: |
for i in $(seq 0 63); do mknod -m 0660 /dev/loop$i b 7 $i 2>/dev/null || true; done
mknod -m 0660 /dev/loop-control b 7 0 2>/dev/null || true
ks="$(mktemp --suffix=.cfg)"
grep -v -E '^(text|cmdline|graphical)([[:space:]]|$)' "cook/dishes/${{ env.KICKSTART_FILE }}.cfg" > "$ks"
livemedia-creator --ks "$ks" --no-virt --resultdir build --project phyllomeos --make-iso --volid phyllomeos --iso-only --iso-name ${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso --releasever ${{ env.FEDORA_VERSION }} --macboot
- name: Upload ISO as artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: ${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso
path: build/${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso
if-no-files-found: error
- name: Publish ISO as release
if: startsWith(github.ref, 'refs/tags/')
uses: https://git.phyllo.me/devops/action-gh-release@v2
with:
files: build/${{ env.KICKSTART_FILE }}-${{ env.FEDORA_VERSION }}.iso
draft: false
prerelease: false