Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonN3 committed Feb 9, 2024
1 parent 2dc9944 commit 89d1e90
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/iso.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Create and publish an ISO

env:
MAJOR_VERION: "f39"

on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:

jobs:
build-and-push-iso:
runs-on: ubuntu-latest
container:
image: fedora:${{ env.MAJOR_VERSION }}
options: "--device=/dev/loop-control:/dev/loop-control --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN"
permissions:
contents: read
packages: write

steps:
- name: Install livecd-tools
run: |
dnf install -y \
livecd-tools \
pykickstart
- name: Flatten Kickstart file
run: |
ksflatten \
-c kickstart.ks \
-o kickstart-flat.ks
- name: Create ISO
run: |
livecd-creator --verbose \
--config=kickstart-flat.ks \
--fslabel=Fedora-LiveCD \
--cache =/var/cache/live
- name: Upload ISO as Artifact
uses: actions/upload-artifact@v4
with:
name: installer.iso
path: something.iso
if-no-files-found: error
retention-days: 0
compression-level: 0
overwrite: true
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "submodules/fedora-kickstarts"]
path = submodules/fedora-kickstarts
url = https://pagure.io/fedora-kickstarts.git
branch = f39
1 change: 1 addition & 0 deletions kickstart.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
%include submodules/fedora-kickstarts/fedora-live-base.ks

0 comments on commit 89d1e90

Please sign in to comment.