Build and Upload ISO #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Upload ISO | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Download Rocky Linux ISO | |
run: | | |
wget -O rocky.iso https://download.rockylinux.org/pub/rocky/8/isos/x86_64/Rocky-8.4-x86_64-minimal.iso | |
- name: Build container | |
run: | | |
buildah build -t ns8-boxbuilder . | |
- name: Create modified ISO | |
run: | | |
podman run --rm -it --privileged -v $(pwd):/root localhost/ns8-boxbuilder mkksiso --cmdline "inst.ks=https://raw.githubusercontent.com/NethServer/ns8-rocky-iso/refs/heads/main/ks.cfg" rocky.iso ns8.iso | |
- name: Upload ISO artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ns8-iso | |
path: ns8.iso |