mkosi-based Gitea runner OS and job image
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
33 files changed
+529
No files matched your search
@@ -0,0 +1,17 @@
|
||||
# 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.
|
||||
[Unit]
|
||||
Description=Base images for Gitea Actions jobs
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Before=gitea-runner.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Environment=IMAGES=/var/lib/containers/base-images
|
||||
# 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 image prune -f
|
||||
TimeoutStartSec=30min
|
||||
Reference in new issue
Block a user