chore: auf v2-Build konsolidieren und Doku/Kommentare/Font-Config angleichen

- build.yml und redhat_build.yml entfernt; build-v2.yml ist einziger Build-Workflow
- Workflow-Header/Name auf Einzel-Workflow aktualisiert
- Containerfile-Header auf Projektkennung angepasst
- README mit beiden Branches (main Kinoite, feat/labwc-noctalia) und ISO-Build
- Justfile-Kommentare an Branch-Kontext (ISO-only) angepasst
- Font-Config um serif (Noto Serif) ergänzt
This commit is contained in:
humocs-man committed 2026-10-17 18:10:44 +02:00
1 parent ad283ba444
commit 6313994c6e
7 files changed
+75 -469

No files matched your search

+10 -17
View File
@@ -1,25 +1,18 @@
# =============================================================================
# KONSOLIDIERTER BUILD-WORKFLOW (experimentell)
# BUILD-WORKFLOW (einziger Build-Workflow)
# -----------------------------------------------------------------------------
# Führt die beiden bisherigen Workflows zusammen:
# - build.yml: Buildx direkt in die Registry (fragiler
# go-zstd-chunked-Workaround, kein --recursive beim Signieren)
# - redhat_build.yml: OCI-Export + Skopeo-Recompress zu zstd:chunked +
# rekursives Legacy-Signieren (der verlässlichere Weg)
# Baut das Image via Buildx, exportiert ein OCI-Archiv und pusht mit Skopeo
# als zstd:chunked in die Registry. Anschließend rekursives Cosign-Signieren
# im Legacy-Format (.sig), damit die sigstoreSigned-Policy in policy.json
# greift (auch für Test-Tags).
#
# Ablauf hier: Buildx -> OCI-Archiv -> Skopeo-Push mit zstd:chunked ->
# rekursives Cosign-Signieren im Legacy-Format (.sig, für
# sigstoreSigned in policy.json erforderlich).
# Ablauf: Buildx -> OCI-Archiv -> Skopeo-Push (zstd:chunked) ->
# rekursives Cosign-Signieren (.sig).
#
# FALLBACK: build.yml und redhat_build.yml bleiben unverändert bestehen.
# Dieser Workflow startet NUR manuell (workflow_dispatch), damit du ihn in
# Ruhe testen kannst. Zur Übernahme:
# 1. Diesen Workflow per workflow_dispatch auf main testen.
# 2. Bei Erfolg: `on:`-Trigger (schedule/pull_request) von build.yml
# hierher übernehmen und build.yml + redhat_build.yml löschen
# (oder per `on: workflow_dispatch` als manuellen Fallback behalten).
# Trigger: manuell (workflow_dispatch). Weitere Trigger (schedule/pull_request)
# können bei Bedarf in `on:` ergänzt werden.
# =============================================================================
name: Build container image v2 (consolidated)
name: Build container image
on:
workflow_dispatch:
-149
View File
@@ -1,149 +0,0 @@
name: Build container image
on:
# pull_request:
# branches:
# - main
# schedule:
# - cron: '05 12 * * 2,5'
workflow_dispatch:
env:
IMAGE_DESC: "Custom Fedora bootc image"
IMAGE_NAME: "${{ github.event.repository.name }}"
DEFAULT_TAG: "stable"
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
build_push:
name: Build and push image
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- name: Prepare environment
run: |
set -euo pipefail
REGISTRY_HOST=$(echo "${{ github.server_url }}" | awk -F/ '{print $3}')
OWNER_LOWER="${{ github.repository_owner }}"
NAME_LOWER="${{ env.IMAGE_NAME }}"
echo "REGISTRY_HOST=${REGISTRY_HOST}" >> "${GITHUB_ENV}"
echo "IMAGE_REGISTRY=${REGISTRY_HOST}/${OWNER_LOWER,,}" >> "${GITHUB_ENV}"
echo "IMAGE_NAME=${NAME_LOWER,,}" >> "${GITHUB_ENV}"
echo "DATE_TAG=$(date -u +'%Y%m%d')" >> "${GITHUB_ENV}"
echo "BUILD_DATE_ISO=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "${GITHUB_ENV}"
- name: Checkout
uses: actions/checkout@v7.0.1
- name: Prepare Registry Auth File
env:
AUTH_BASE64: ${{ secrets.READONLY_AUTH_BASE64 }}
run: |
set -euo pipefail
sed "s|READONLY_TOKEN_PLACEHOLDER|${AUTH_BASE64}|g" \
configs/auth.json.template > configs/auth.json
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4.4.1
- name: Image Metadata
id: metadata
uses: docker/metadata-action@v6.2.0
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ env.DEFAULT_TAG }},enable=${{ github.ref_name == 'main' }}
type=raw,value=${{ env.DEFAULT_TAG }}.${{ env.DATE_TAG }},enable=${{ github.ref_name == 'main' }}
type=raw,value=${{ env.DATE_TAG }},enable=${{ github.ref_name == 'main' }}
type=raw,value=test-{{branch}},enable=${{ github.ref_name != 'main' && github.event_name != 'pull_request' }}
type=ref,event=pr,prefix=test-pr-
labels: |
org.opencontainers.image.created=${{ env.BUILD_DATE_ISO }}
org.opencontainers.image.description=${{ env.IMAGE_DESC }}
org.opencontainers.image.documentation=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.vendor=${{ github.repository_owner }}
org.opencontainers.image.version=${{ env.DEFAULT_TAG }}.${{ env.DATE_TAG }}
containers.bootc=1
ostree.bootable=1
- name: Login to Gitea Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v4.6.0
with:
registry: ${{ env.REGISTRY_HOST }}
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY }}
- name: Build and Push Image
id: build_image
uses: docker/build-push-action@v7.4.0
with:
context: .
file: ./Containerfile
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
oci-mediatypes: true
compression: zstd
provenance: false
sbom: false
cache-from: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64-main
cache-to: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-amd64-main,mode=max
outputs: type=registry,oci-mediatypes=true,compression=zstd,compression-args=binary-path=/usr/bin/go-zstd-chunked
- name: Install gettext dependencies
if: github.event_name != 'pull_request' && github.ref_name == 'main'
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y gettext
- name: Install Cosign
if: github.event_name != 'pull_request' && github.ref_name == 'main'
uses: sigstore/cosign-installer@v4.1.2
- name: Sign container image
if: github.event_name != 'pull_request' && github.ref_name == 'main'
env:
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
COSIGN_PASSWORD: ""
run: |
set -euo pipefail
echo "${{ secrets.REGISTRY }}" | cosign login \
"${{ env.REGISTRY_HOST }}" \
-u "${{ github.repository_owner }}" \
--password-stdin
IMAGE="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}"
DIGEST="${{ steps.build_image.outputs.digest }}"
test -n "${DIGEST}"
cosign sign -y \
--key env://COSIGN_PRIVATE_KEY \
--use-signing-config=false \
--new-bundle-format=false \
--registry-referrers-mode=legacy \
"${IMAGE}@${DIGEST}"
- name: Post-Build Cleanup
if: always()
run: |
rm -f configs/auth.json
docker buildx prune -a -f || true
-285
View File
@@ -1,285 +0,0 @@
name: redhat build container image
on:
# schedule:
# - cron: '05 12 * * 2,5'
workflow_dispatch:
env:
IMAGE_DESC: "Custom Fedora bootc image"
IMAGE_NAME: "${{ github.event.repository.name }}"
DEFAULT_TAG: "stable"
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
build_push:
name: Build and push image
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
id-token: write
steps:
# ------------------------------------------------------------
# Environment
# ------------------------------------------------------------
- name: Prepare environment
run: |
REGISTRY_HOST=$(echo "${{ github.server_url }}" | awk -F/ '{print $3}')
OWNER_LOWER="${{ github.repository_owner }}"
NAME_LOWER="${{ env.IMAGE_NAME }}"
echo "REGISTRY_HOST=${REGISTRY_HOST}" >> "${GITHUB_ENV}"
echo "IMAGE_REGISTRY=${REGISTRY_HOST}/${OWNER_LOWER,,}" >> "${GITHUB_ENV}"
echo "IMAGE_NAME=${NAME_LOWER,,}" >> "${GITHUB_ENV}"
# ------------------------------------------------------------
# Image tag
# ------------------------------------------------------------
- name: Determine image tag
run: |
BRANCH="${GITHUB_REF_NAME}"
if [[ "$BRANCH" == "main" ]]; then
echo "IMAGE_TAG=${DEFAULT_TAG}" >> "${GITHUB_ENV}"
echo "IS_TEST_BUILD=false" >> "${GITHUB_ENV}"
else
SANITIZED=$(echo "$BRANCH" \
| sed 's/[^a-zA-Z0-9._-]/-/g' \
| head -c 50)
echo "IMAGE_TAG=test-${SANITIZED}" >> "${GITHUB_ENV}"
echo "IS_TEST_BUILD=true" >> "${GITHUB_ENV}"
fi
# ------------------------------------------------------------
# Checkout
# ------------------------------------------------------------
- name: Checkout
uses: actions/checkout@v7.0.1
# ------------------------------------------------------------
# Buildx
# ------------------------------------------------------------
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4.4.1
# ------------------------------------------------------------
# Image metadata
# ------------------------------------------------------------
- name: Image Metadata
id: metadata
uses: docker/metadata-action@v6.2.0
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ env.IMAGE_TAG }}
type=raw,value=${{ env.IMAGE_TAG }}.{{date 'YYYYMMDD'}},enable=${{ env.IS_TEST_BUILD == 'false' }}
type=raw,value={{date 'YYYYMMDD'}},enable=${{ env.IS_TEST_BUILD == 'false' }}
type=sha,enable=${{ github.event_name == 'pull_request' }}
type=ref,event=pr
labels: |
org.opencontainers.image.created={{date 'YYYY-MM-DDTHH:mm:ssZ'}}
org.opencontainers.image.description=${{ env.IMAGE_DESC }}
org.opencontainers.image.documentation=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.url=${{ github.server_url }}/${{ github.repository }}
org.opencontainers.image.vendor=${{ github.repository_owner }}
org.opencontainers.image.version=${{ env.IMAGE_TAG }}.{{date 'YYYYMMDD'}}
containers.bootc=1
ostree.bootable=1
# ------------------------------------------------------------
# Registry login
# ------------------------------------------------------------
- name: Login to Gitea Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v4.6.0
with:
registry: ${{ env.REGISTRY_HOST }}
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY }}
# ------------------------------------------------------------
# Prepare OCI output
# ------------------------------------------------------------
- name: Prepare OCI archive
run: |
rm -rf "${{ github.workspace }}/oci-layout.tar"
# ------------------------------------------------------------
# Build image
# ------------------------------------------------------------
- name: Build Image (Docker Buildx OCI-Export)
uses: docker/build-push-action@v7.4.0
id: build_image
with:
context: .
file: ./Containerfile
push: false
pull: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache-from: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
outputs: type=oci,dest=${{ github.workspace }}/oci-layout.tar,tar=true
# ------------------------------------------------------------
# Inspect OCI archive
# ------------------------------------------------------------
- name: Inspect OCI archive
if: github.event_name != 'pull_request'
run: |
set -euo pipefail
echo "OCI archive:"
ls -lh "${{ github.workspace }}/oci-layout.tar"
echo
echo "OCI index.json:"
tar -xf "${{ github.workspace }}/oci-layout.tar" \
-O index.json | jq .
echo
echo "OCI image references:"
tar -xf "${{ github.workspace }}/oci-layout.tar" \
-O index.json \
| jq -r '
.manifests[]
| .annotations["org.opencontainers.image.ref.name"] // "(no ref.name)"
'
# ------------------------------------------------------------
# Install Skopeo
# ------------------------------------------------------------
- name: Install Skopeo
if: github.event_name != 'pull_request'
run: |
sudo apt-get update
sudo apt-get install -y skopeo
# ------------------------------------------------------------
# Push images via Skopeo
# ------------------------------------------------------------
- name: Push Images via Skopeo (zstd:chunked)
if: github.event_name != 'pull_request'
run: |
set -euo pipefail
OCI_ARCHIVE="${{ github.workspace }}/oci-layout.tar"
TAGS="${{ steps.metadata.outputs.tags }}"
echo "Images to push:"
echo "${TAGS}"
for DEST_TAG in ${TAGS}; do
SOURCE_TAG="${DEST_TAG##*:}"
echo
echo "============================================================"
echo "Source OCI tag : ${SOURCE_TAG}"
echo "Destination : ${DEST_TAG}"
echo "============================================================"
skopeo copy \
--dest-creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
--dest-compress-format zstd:chunked \
"oci-archive:${OCI_ARCHIVE}:${SOURCE_TAG}" \
"docker://${DEST_TAG}"
done
# ------------------------------------------------------------
# Install envsubst
# ------------------------------------------------------------
- name: Install envsubst dependencies
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false'
run: |
sudo apt-get update
sudo apt-get install -y gettext
# ------------------------------------------------------------
# Install Cosign
# ------------------------------------------------------------
- name: Install Cosign
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false'
uses: sigstore/cosign-installer@v4.1.2
# ------------------------------------------------------------
# Sign image
# ------------------------------------------------------------
- name: Sign container image (Recursive Digest)
if: github.event_name != 'pull_request' && env.IS_TEST_BUILD == 'false'
env:
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
COSIGN_PASSWORD: ""
run: |
set -euo pipefail
echo "${{ secrets.REGISTRY }}" \
| cosign login "${{ env.REGISTRY_HOST }}" \
-u "${{ github.repository_owner }}" \
--password-stdin
echo "Frage finalen Registry-Digest via Skopeo ab..."
OUTER_DIGEST=$(
skopeo inspect \
--creds "${{ github.repository_owner }}:${{ secrets.REGISTRY }}" \
"docker://${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:stable" \
| jq -r .Digest
)
echo "Registry digest: ${OUTER_DIGEST}"
IMAGE_REF="${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}@${OUTER_DIGEST}"
echo "Signiere Image rekursiv:"
echo "${IMAGE_REF}"
cosign sign -y \
--key env://COSIGN_PRIVATE_KEY \
--recursive \
--use-signing-config=false \
--new-bundle-format=false \
--registry-referrers-mode=legacy \
"${IMAGE_REF}"
# ------------------------------------------------------------
# Cleanup
# ------------------------------------------------------------
- name: Post-Build Cleanup
if: always()
run: |
echo "Räume temporäre Dateien und Buildx-Cache auf..."
rm -f "${{ github.workspace }}/oci-layout.tar"
docker buildx prune -a -f || true
+3 -10
View File
@@ -3,16 +3,9 @@
###############################################################################
# Name: fluffy-pancake
#
# IMPORTANT: Change "finpilot" above to your desired project name.
# This name should be used consistently throughout the repository in:
# - Justfile: export image_name := env("IMAGE_NAME", "your-name-here")
# - README.md: # your-name-here (title)
# - artifacthub-repo.yml: repositoryID: your-name-here
# - custom/ujust/README.md: localhost/your-name-here:stable (in bootc switch example)
#
# The project name defined here is the single source of truth for your
# custom image's identity. When changing it, update all references above
# to maintain consistency.
# Projektkennung (konsistent in Justfile, README, Workflows). Diese Datei ist
# die Referenz fuer die Image-Identitaet; bei Umbenennung alle Stellen
# (Justfile image_name, README-Titel, Workflow-IMAGE_NAME) mitziehen.
###############################################################################
###############################################################################
+12 -4
View File
@@ -1,3 +1,10 @@
# fluffy-pancake – Justfile (feat/labwc-noctalia-Zweig)
# Dieser Zweig baut ausschliesslich Installer-ISOs (kein qcow2/raw).
# Auf dem main-Zweig (Kinoite-Basis) stehen zusaetzlich qcow2/raw-Targets
# zur Verfuegung – dortige Justfile ist nicht identisch.
# Registry/Image-Name/Tag lassen sich per Env (REGISTRY, IMAGE_NAME,
# DEFAULT_TAG, BIB_IMAGE) ueberschreiben.
export registry := env("REGISTRY", "humocs-man.duckdns.org/humocs-man")
export image_name := env("IMAGE_NAME", "fluffy-pancake")
export default_tag := env("DEFAULT_TAG", "stable")
@@ -70,7 +77,8 @@ sudoif command *args:
sudoif {{ command }} {{ args }}
# Build the local image using Podman from Containerfile
# HINWEIS: Lokal wird nur das Container-Image + ISO gebaut (kein qcow2/raw).
# HINWEIS: Auf diesem Zweig wird nur das Container-Image + ISO gebaut
# (kein qcow2/raw – diese Targets gibt es nur auf main).
# configs/auth.json liegt NICHT im Repo (gitignored, Secret) - fehlt die
# Datei, wird sie aus dem Template mit Dummy-Token angelegt, damit der
# lokale Build nicht an COPY scheitert. CI erzeugt die echte Datei selbst.
@@ -181,7 +189,7 @@ _build-bib $target_image $tag $type $config: (_rootful_load_image target_image t
_rebuild-bib $target_image $tag $type $config: (build target_image tag) && (_build-bib target_image tag type config)
# ==============================================================================
# BUILD TARGETS (Pullen aus Remote-Registry, nur ISO - kein qcow2/raw)
# BUILD TARGETS (ISO aus Remote-Registry pullen, kein lokaler Container-Build)
# ==============================================================================
# Build an ISO virtual machine image from Registry
@@ -189,7 +197,7 @@ _rebuild-bib $target_image $tag $type $config: (build target_image tag) && (_bui
build-iso $target_image=(registry + "/" + image_name) $tag=default_tag: && (_build-bib target_image tag "iso" "iso/iso.toml")
# ==============================================================================
# REBUILD TARGETS (Lokaler Build via Containerfile + Image Builder, nur ISO)
# REBUILD TARGETS (Lokaler Container-Build + ISO aus dem lokalen Image)
# ==============================================================================
# Rebuild an ISO virtual machine image locally
@@ -197,7 +205,7 @@ build-iso $target_image=(registry + "/" + image_name) $tag=default_tag: && (_bui
rebuild-iso $target_image=("localhost/" + image_name) $tag=default_tag: && (_rebuild-bib target_image tag "iso" "iso/iso.toml")
# ==============================================================================
# RUN TARGETS (nur ISO - kein qcow2/raw)
# RUN TARGETS (ISO in QEMU-VM starten)
# ==============================================================================
# Run a virtual machine with the specified image type and configuration
+46 -4
View File
@@ -18,6 +18,24 @@ This repository does **not** provide a public distribution, installer, or upgrad
---
## Branches
This repository maintains two branches with different base systems and desktop stacks:
- **`main`** – stable branch.
Base: `quay.io/fedora/fedora-kinoite:44` (KDE Plasma).
Produces the private `:stable` image tag (and dated `:stable.YYYYMMDD` tags).
Supports QCOW2, RAW and ISO artifacts via the Justfile.
- **`feat/labwc-noctalia`** – experimental branch.
Base: `quay.io/fedora/fedora-bootc:44` (minimal), desktop built from scratch with **labwc** (Wayland compositor) + **Noctalia Shell** (native v5) + **greetd** (Noctalia Greeter).
ISO-only build target (`build-iso`/`rebuild-iso`); no QCOW2/RAW.
Produces `test-feat-labwc-noctalia` (and dated) tags on non-main builds.
The two branches share the bootc build infrastructure (Justfile, Gitea workflow, signing) but differ in packages, desktop configuration and supported artifact types. ISOs are built locally from images in the private registry using the Justfile.
---
## Technical Foundation
The image is built using the **bootc container‑based operating system model**, leveraging Fedora as the underlying base system.
@@ -42,14 +60,38 @@ No guarantees are made regarding stability, compatibility, or long‑term suppor
## Build System Overview
- Automated image builds via GitHub Actions
- Pull request validation before publishing images
- Automated image builds via **Gitea Actions** (`.gitea/workflows/`)
- Single consolidated workflow: `.gitea/workflows/build-v2.yml` (Buildx → OCI archive → Skopeo push as `zstd:chunked` → recursive Cosign signing in legacy `.sig` format)
- Pull request validation before publishing images (when enabled)
- `main` branch produces a private `:stable` image tag
- Optional image signing and SBOM generation
- Non-main branches produce `test-<branch>` tags
- Optional image signing (Cosign, sigstoreSigned policy in `configs/containers/policy.json`)
- No public registry publication
- ISOs are built **locally** from registry images via the `Justfile` (`build-iso` / `rebuild-iso`)
Images are stored in a **private GitHub Container Registry namespace**.
Images are stored in a **private Gitea Container Registry namespace** (`humocs-man.duckdns.org/humocs-man`).
---
## Local ISO build (Justfile)
```bash
# Pull a published image from the registry and build an installer ISO
just build-iso
# Build the container image locally, then build an ISO from it
just rebuild-iso
# Run the resulting ISO in a QEMU VM
just run-vm-iso
```
`build-iso` pulls the remote image; `rebuild-iso` performs a local `podman build` first. The ISO kickstart (`iso/iso.toml`) is rewritten by the Justfile to point at the chosen `$target_image:$tag`, so locally built test ISOs install the test image rather than `:stable`.
---
## Notes
- The `feat/labwc-noctalia` branch is ISO-only; QCOW2/RAW targets exist only on `main`.
- Access to images requires authentication against the private registry.
- No third-party support or upgrade guarantees are provided.
+4
View File
@@ -8,6 +8,10 @@
<family>sans-serif</family>
<prefer><family>Noto Sans</family></prefer>
</alias>
<alias>
<family>serif</family>
<prefer><family>Noto Serif</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Noto Sans Mono</family></prefer>