No repo secrets: unsigned image, updates as release assets, job image built by mkosi
os / os (push) Successful in 3m51s

The workflow's own token can't write packages and repo secrets can't be
set, so: build unsigned, publish the sysupdate files as assets of the
"latest" release, and build the job image with mkosi and ship it in /usr
instead of pushing it to a registry. Partition UUIDs are now part of the
update file names, so updated /usr partitions keep the UUIDs usrhash=
expects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-12 23:21:42 +01:00
1 parent d4eebeb01f
commit dfa5d69b44
16 files changed
+107 -108

No files matched your search

+4 -3
View File
@@ -9,8 +9,8 @@ runner:
# podman in jobs: the job's own storage plus the shared base images (see volumes below).
CONTAINERS_STORAGE_CONF: /usr/lib/gitea-runner/job/storage.conf
labels:
# Our job image (job/Containerfile): git, node, skopeo and podman.
- "linux:docker://git.plabble.org/job79/git-runner-mkosi-job:latest"
# 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.
- "fedora:docker://quay.io/fedora/fedora:45"
container:
@@ -25,7 +25,8 @@ container:
- /var/lib/containers/base-images:/var/lib/base-images:ro
# podman storage settings for jobs (see the file).
- /usr/lib/gitea-runner/job:/usr/lib/gitea-runner/job:ro
force_pull: true
# Images are pulled when missing: our job image never is, fedora once per boot.
force_pull: false
cache:
# Jobs reach the cache on the host through their bridge; the firewall allows this port.
host: host.containers.internal
@@ -1,8 +1,9 @@
# Pulls the base images that jobs share read-only (see /usr/lib/gitea-runner/config.yaml) before the
# runner starts, so no job uses them while they change. Hosts reboot to update, so this runs about
# as often as there are updates.
# Before the runner starts: loads our job image from /usr into podman's storage (wiped at every
# boot), and pulls the base images that jobs share read-only (see /usr/lib/gitea-runner/config.yaml),
# so no job uses them while they change. Hosts reboot to update, so this runs about as often as
# there are updates.
[Unit]
Description=Base images for Gitea Actions jobs
Description=Images for Gitea Actions jobs
Wants=network-online.target
After=network-online.target
Before=gitea-runner.service
@@ -10,8 +11,8 @@ Before=gitea-runner.service
[Service]
Type=oneshot
Environment=IMAGES=/var/lib/containers/base-images
ExecStart=/bin/sh -c 'podman tag "$(podman pull -q oci:/usr/lib/gitea-runner/job-image)" localhost/git-runner-job:latest'
# Without network the runner still starts, with the images it has.
ExecStart=-/usr/bin/podman --root ${IMAGES} --runroot /run/containers/base-images pull -q --policy newer \
quay.io/fedora/fedora:45 quay.io/fedora/fedora-minimal:45
ExecStart=-/usr/bin/podman --root ${IMAGES} --runroot /run/containers/base-images pull -q --policy newer quay.io/fedora/fedora:45
ExecStart=/usr/bin/podman --root ${IMAGES} --runroot /run/containers/base-images image prune -f
TimeoutStartSec=30min
@@ -1,13 +1,12 @@
# Updates /usr: writes the next version to the unused /usr partition.
[Transfer]
ProtectVersion=%A
# Not signed: the Secure Boot signed UKI pins the hash of /usr (usrhash=).
Verify=no
[Source]
Type=url-file
Path=https://git.plabble.org/api/packages/job79/generic/git-runner-mkosi/latest/
MatchPattern=git-runner_@v.usr-%a.raw.zst
Path=https://git.plabble.org/Job79/git-runner-mkosi/releases/download/latest/
MatchPattern=git-runner_@v.usr-%a.@u.raw.zst
[Target]
Type=partition
@@ -5,8 +5,8 @@ Verify=no
[Source]
Type=url-file
Path=https://git.plabble.org/api/packages/job79/generic/git-runner-mkosi/latest/
MatchPattern=git-runner_@v.usr-%a-verity.raw.zst
Path=https://git.plabble.org/Job79/git-runner-mkosi/releases/download/latest/
MatchPattern=git-runner_@v.usr-%a-verity.@u.raw.zst
[Target]
Type=partition
@@ -1,20 +1,17 @@
# Installs the next UKI, which systemd-boot boots by default. If it fails to boot 3 times,
# systemd-boot falls back to the previous one.
# Installs the next UKI, which systemd-boot boots by default.
[Transfer]
ProtectVersion=%A
Verify=no
[Source]
Type=url-file
Path=https://git.plabble.org/api/packages/job79/generic/git-runner-mkosi/latest/
Path=https://git.plabble.org/Job79/git-runner-mkosi/releases/download/latest/
MatchPattern=git-runner_@v.efi
[Target]
Type=regular-file
Path=/EFI/Linux
PathRelativeTo=boot
MatchPattern=git-runner_@v+@l-@d.efi git-runner_@v+@l.efi git-runner_@v.efi
MatchPattern=git-runner_@v.efi
Mode=0444
TriesLeft=3
TriesDone=0
InstancesMax=2