Update build-installer-iso.yml

This commit is contained in:
humocs-man
2026-03-11 21:14:19 +01:00
committed by GitHub
parent 006a02fc38
commit 290f36c337
+21 -27
View File
@@ -1,12 +1,19 @@
name: Build bootc installer ISO name: Build ISO
on: on:
workflow_dispatch: workflow_dispatch:
push:
branches:
- main
jobs: jobs:
build-iso: build-iso:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
packages: read
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -14,37 +21,24 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y \ sudo apt-get install -y qemu-utils xz-utils
genisoimage \
isomd5sum \
syslinux-utils \
wget
- name: Download Fedora Server ISO (pinned) - name: Pull bootc-image-builder container
run: | run: |
FEDORA_VERSION=43 docker pull quay.io/centos-bootc/bootc-image-builder:latest
FEDORA_BUILD=1.6
wget -O fedora-server.iso \ - name: Build ISO
https://download.fedoraproject.org/pub/fedora/linux/releases/${FEDORA_VERSION}/Server/x86_64/iso/Fedora-Server-dvd-x86_64-${FEDORA_VERSION}-${FEDORA_BUILD}.iso
- name: Install mkksiso
run: | run: |
wget -O mkksiso \ mkdir -p output
https://raw.githubusercontent.com/rhinstaller/anaconda/main/scripts/mkksiso docker run --rm \
chmod +x mkksiso -v ${{ github.workspace }}:/workspace \
sudo mv mkksiso /usr/local/bin/ -v ${{ github.workspace }}/output:/output \
quay.io/centos-bootc/bootc-image-builder:latest \
- name: Build installer ISO --config /workspace/iso/config.toml \
run: | --output-dir /output
mkksiso \
--ks installer/bootc.ks \
--cmdline "inst.ks=cdrom:/bootc.ks" \
fedora-server.iso \
fluffy-pancake-installer.iso
- name: Upload ISO artifact - name: Upload ISO artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: fluffy-pancake-installer name: fluffy-pancake-installer.iso
path: fluffy-pancake-installer.iso path: output/*.iso