mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
add workflow
This commit is contained in:
parent
2dc994447e
commit
89d1e900cd
3 changed files with 54 additions and 0 deletions
52
.github/workflows/iso.yml
vendored
Normal file
52
.github/workflows/iso.yml
vendored
Normal file
|
|
@ -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
.gitmodules
vendored
1
.gitmodules
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
[submodule "submodules/fedora-kickstarts"]
|
[submodule "submodules/fedora-kickstarts"]
|
||||||
path = submodules/fedora-kickstarts
|
path = submodules/fedora-kickstarts
|
||||||
url = https://pagure.io/fedora-kickstarts.git
|
url = https://pagure.io/fedora-kickstarts.git
|
||||||
|
branch = f39
|
||||||
|
|
|
||||||
1
kickstart.ks
Normal file
1
kickstart.ks
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
%include submodules/fedora-kickstarts/fedora-live-base.ks
|
||||||
Loading…
Add table
Add a link
Reference in a new issue