forked from roots/phyllomeos
- add fedora-44-mirrors ingredient and register it in the repository choices - expand the desktop variant matrix to [43, 44, rawhide] (48 dishes) - bump CI workflows and deploy fallback URL to Fedora 44 - cover both release repositories in tests
75 lines
2.0 KiB
YAML
75 lines
2.0 KiB
YAML
name: build-iso
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: fedora
|
|
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 dependencies
|
|
run: |
|
|
pip install PyYAML pykickstart
|
|
|
|
- name: Generate, lint, and validate dishes
|
|
run: |
|
|
cd cook
|
|
make all
|
|
|
|
build-iso:
|
|
needs: validate
|
|
runs-on: fedora-cloud-42
|
|
container:
|
|
image: git.phyllo.me/devops/fedora-runner-image:latest
|
|
|
|
steps:
|
|
- uses: https://git.phyllo.me/devops/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Initialize mock
|
|
run: |
|
|
mock -r fedora-44-x86_64 --init
|
|
|
|
- name: Install required packages
|
|
run: |
|
|
mock -r fedora-44-x86_64 --install lorax-lmc-novirt vim-minimal pykickstart livecd-tools
|
|
|
|
- name: Generate dishes
|
|
run: |
|
|
cd cook
|
|
make all
|
|
|
|
- name: Copy configuration file to mock
|
|
run: |
|
|
mock -r fedora-44-x86_64 --copyin dishes/desktop_44_standard_grub_gnome_guest-agents.cfg /builddir
|
|
|
|
- name: Build ISO with livemedia-creator
|
|
run: |
|
|
mock -r fedora-44-x86_64 --shell --enable-network --isolation=simple << 'EOF'
|
|
cd /builddir
|
|
livemedia-creator --ks desktop_44_standard_grub_gnome_guest-agents.cfg --no-virt --resultdir /var/lmc --project phyllomeos --make-iso --volid phyllomeos --iso-only --iso-name desktop-44.iso --releasever 44 --macboot
|
|
EOF
|
|
|
|
- name: Upload ISO as artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: desktop-44.iso
|
|
path: /var/lmc/desktop-44.iso
|
|
if-no-files-found: error
|
|
|
|
- name: Cleanup mock environment
|
|
if: always()
|
|
run: |
|
|
mock -r fedora-44-x86_64 --clean
|