Reusable Build ISO #16
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 SunnyOS with GNOME ISO | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch to build' | |
required: true | |
default: 'sunnyos_gnome' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Use /mnt for Temporary Storage | |
run: | | |
mkdir -p /mnt/temp | |
- name: Build SunnyOS ISO | |
run: | | |
docker run --rm --privileged \ | |
-v "$GITHUB_WORKSPACE:/work" \ | |
-v "/mnt/temp:/tmp" \ | |
archlinux:latest /bin/bash -c " | |
pacman -Sy --noconfirm archiso && | |
mkarchiso -v -w /tmp/work -o /tmp/out /work/profile | |
" | |
- name: Upload ISO artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sunnyos-iso | |
path: /mnt/temp/out/*.iso |