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

55 lines
1.5 KiB
YAML

name: Build bootc installer ISO
on:
workflow_dispatch:
jobs:
build-iso:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
genisoimage \
isomd5sum \
syslinux-utils \
wget \
curl \
jq
- name: Download latest Fedora Server ISO
run: |
FEDORA_BASE=https://download.fedoraproject.org/pub/fedora/linux/releases
FEDORA_VER=$(curl -s https://getfedora.org/releases.json | jq -r '.[] | select(.state=="current") | .version')
echo "Using Fedora $FEDORA_VER"
wget -O fedora-server.iso \
$FEDORA_BASE/$FEDORA_VER/Server/x86_64/iso/Fedora-Server-dvd-x86_64-$FEDORA_VER-*.iso
- name: Install mkksiso
run: |
wget -O mkksiso \
https://raw.githubusercontent.com/rhinstaller/anaconda/main/scripts/mkksiso
chmod +x mkksiso
sudo mv mkksiso /usr/local/bin/
- name: Build installer ISO
run: |
mkksiso \
--ks iso/bootc.ks \
--cmdline "inst.ks=cdrom:/bootc.ks" \
fedora-server.iso \
fluffy-pancake-installer.iso
- name: Upload ISO artifact
uses: actions/upload-artifact@v4
with:
name: fluffy-pancake-installer
path: fluffy-pancake-installer.iso