No repo secrets: unsigned image, updates as release assets, job image built by mkosi
os / os (push) Successful in 3m51s
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:
16 files changed
+107
-108
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user