48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Build ISO
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-iso:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
packages: read
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y qemu-utils xz-utils
|
|
|
|
- name: Pull bootc-image-builder container
|
|
run: |
|
|
docker pull quay.io/centos-bootc/bootc-image-builder:latest
|
|
|
|
- name: Build ISO
|
|
run: |
|
|
docker run --rm --privileged \
|
|
-v "${{ github.workspace }}:/workspace" \
|
|
-v "${{ github.workspace }}/output:/output" \
|
|
-v "/var/lib/containers/storage:/var/lib/containers/storage" \
|
|
quay.io/centos-bootc/bootc-image-builder:latest \
|
|
-- \
|
|
/workspace \
|
|
--config /workspace/iso/config.toml
|
|
|
|
|
|
|
|
- name: Upload ISO artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: fluffy-pancake-installer.iso
|
|
path: output/*.iso
|