From 607987ebbdeea5ea79c1ad1a4b95b161d5cd9900 Mon Sep 17 00:00:00 2001 From: Job79 Date: Sat, 14 Nov 2026 22:43:34 +0100 Subject: [PATCH] Build the OS on our own job image The os workflow now runs on linux, our job image, instead of plain Fedora; it already has git, so only mkosi is installed. If a change breaks the job image, build the fix locally. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/os.yml | 7 ++++--- README.md | 2 +- mkosi.extra/usr/lib/gitea-runner/config.yaml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/os.yml b/.gitea/workflows/os.yml index 3ce3e22..b6c2487 100644 --- a/.gitea/workflows/os.yml +++ b/.gitea/workflows/os.yml @@ -2,7 +2,8 @@ # # Builds the OS image, with the job image inside, and publishes it as version "latest" of the # generic package git-runner, where runners fetch their updates (mkosi.extra/usr/lib/sysupdate.d). -# Runs on every push, weekly for Fedora updates, and by hand. +# Runs on every push, weekly for Fedora updates, and by hand, on our own job image: if a change +# breaks it, build the fix locally (see README.md). name: os on: push: @@ -13,13 +14,13 @@ on: jobs: os: - runs-on: fedora + runs-on: linux env: PKG: ${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/git-runner/latest AUTH: "Authorization: token ${{ github.token }}" steps: - name: Install tools - run: dnf install -yq git-core mkosi + run: dnf install -yq mkosi - name: Check out uses: builtin:checkout - name: Build diff --git a/README.md b/README.md index e06e804..c7b15fd 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Download [the disk image](https://git.plabble.org/api/packages/Job79/generic/git | `runs-on` | Image | |---|---| | `linux` | Our job image (`mkosi.images/job/`): git, Node.js, dnf and podman (also as `docker`) | -| `fedora` | Plain Fedora, used by our own build so a broken job image can't block its fix | +| `fedora` | Plain Fedora | ## Development diff --git a/mkosi.extra/usr/lib/gitea-runner/config.yaml b/mkosi.extra/usr/lib/gitea-runner/config.yaml index d478484..2d2f8b6 100644 --- a/mkosi.extra/usr/lib/gitea-runner/config.yaml +++ b/mkosi.extra/usr/lib/gitea-runner/config.yaml @@ -11,7 +11,7 @@ runner: labels: # Our job image (mkosi.images/job), loaded from /usr at boot by gitea-runner-images.service. - "linux:docker://localhost/git-runner-job:latest" - # Plain Fedora; our own build workflows use it, so a broken job image can't block its own fix. + # Plain Fedora. - "fedora:docker://quay.io/fedora/fedora:45" container: # Jobs build OS images, which needs root: they run privileged on root's podman.