Update build-live-iso.yml
This commit is contained in:
@@ -1,46 +1,30 @@
|
|||||||
name: Build Live ISO (Titanoboa + Anaconda)
|
---
|
||||||
|
name: Build Stable ISOs
|
||||||
|
# This workflow ONLY builds Stable ISOs (not LTS, LTS-HWE, or GTS)
|
||||||
|
# Builds: 2 Stable ISOs
|
||||||
|
# - amd64 × main
|
||||||
|
# - amd64 × nvidia-open
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
permissions:
|
upload_artifacts:
|
||||||
contents: read
|
description: 'Upload ISOs as job artifacts'
|
||||||
packages: read
|
type: boolean
|
||||||
|
default: true
|
||||||
|
upload_r2:
|
||||||
|
description: 'Upload ISOs to Cloudflare R2'
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
# schedule:
|
||||||
|
# - cron: '0 2 1 * *' # 2am UTC on the 1st of every month
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
iso:
|
build-iso-stable:
|
||||||
runs-on: ubuntu-latest
|
name: Build Stable ISOs
|
||||||
|
uses: ./.github/workflows/reusable-build-iso-anaconda.yml
|
||||||
steps:
|
secrets: inherit
|
||||||
- name: Checkout
|
with:
|
||||||
uses: actions/checkout@v4
|
image_version: stable # Strictly builds Stable ISOs only
|
||||||
|
image_tag: stable
|
||||||
- name: Free disk space
|
upload_artifacts: ${{ github.event_name == 'workflow_dispatch' && inputs.upload_artifacts || false }}
|
||||||
run: |
|
upload_r2: ${{ github.event_name == 'workflow_dispatch' && inputs.upload_r2 || true }}
|
||||||
sudo rm -rf /usr/share/dotnet
|
|
||||||
sudo rm -rf /usr/local/lib/android
|
|
||||||
sudo rm -rf /opt/ghc
|
|
||||||
sudo apt-get clean
|
|
||||||
|
|
||||||
- name: Build Live ISO
|
|
||||||
id: iso
|
|
||||||
uses: ublue-os/titanoboa@main
|
|
||||||
with:
|
|
||||||
image-ref: ghcr.io/${{ github.repository }}:stable
|
|
||||||
builder-distro: fedora
|
|
||||||
hook-post-rootfs: ${{ github.workspace }}/iso/enable_anaconda.sh
|
|
||||||
kargs: "boot=live inst.webui"
|
|
||||||
|
|
||||||
- name: Rename + checksum
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
mkdir -p output
|
|
||||||
mv "${{ steps.iso.outputs.iso-dest }}" \
|
|
||||||
output/${{ github.event.repository.name }}-live.iso
|
|
||||||
(cd output && sha256sum *.iso > SHA256SUMS)
|
|
||||||
|
|
||||||
- name: Upload ISO
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: live-iso
|
|
||||||
path: output/*
|
|
||||||
|
|||||||
Reference in New Issue
Block a user