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:
3 files changed
+6
-5
No files matched your search
@@ -2,7 +2,8 @@
|
|||||||
#
|
#
|
||||||
# Builds the OS image, with the job image inside, and publishes it as version "latest" of the
|
# 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).
|
# 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
|
name: os
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -13,13 +14,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
os:
|
os:
|
||||||
runs-on: fedora
|
runs-on: linux
|
||||||
env:
|
env:
|
||||||
PKG: ${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/git-runner/latest
|
PKG: ${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/git-runner/latest
|
||||||
AUTH: "Authorization: token ${{ github.token }}"
|
AUTH: "Authorization: token ${{ github.token }}"
|
||||||
steps:
|
steps:
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: dnf install -yq git-core mkosi
|
run: dnf install -yq mkosi
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: builtin:checkout
|
uses: builtin:checkout
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Download [the disk image](https://git.plabble.org/api/packages/Job79/generic/git
|
|||||||
| `runs-on` | Image |
|
| `runs-on` | Image |
|
||||||
|---|---|
|
|---|---|
|
||||||
| `linux` | Our job image (`mkosi.images/job/`): git, Node.js, dnf and podman (also as `docker`) |
|
| `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
|
## Development
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ runner:
|
|||||||
labels:
|
labels:
|
||||||
# Our job image (mkosi.images/job), loaded from /usr at boot by gitea-runner-images.service.
|
# Our job image (mkosi.images/job), loaded from /usr at boot by gitea-runner-images.service.
|
||||||
- "linux:docker://localhost/git-runner-job:latest"
|
- "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"
|
- "fedora:docker://quay.io/fedora/fedora:45"
|
||||||
container:
|
container:
|
||||||
# Jobs build OS images, which needs root: they run privileged on root's podman.
|
# Jobs build OS images, which needs root: they run privileged on root's podman.
|
||||||
|
|||||||
Reference in new issue
Block a user