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 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-14 22:43:54 +01:00
1 parent 7df16dce11
commit 607987ebbd
3 files changed
+6 -5

No files matched your search

+4 -3
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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.