Files
runneros/mkosi.extra/usr/lib/gitea-runner/config.yaml
T
Job79andClaude Opus 5.5 dfa5d69b44
os / os (push) Successful in 3m51s
No repo secrets: unsigned image, updates as release assets, job image built by mkosi
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>
2026-11-12 23:21:42 +01:00

34 lines
1.7 KiB
YAML

# The runner's configuration (gitea-runner.service).
# Every option: `gitea-runner config generate`.
runner:
# Parallel jobs, asked at first boot (stored in /etc/gitea-runner/runner.env).
capacity: ${GITEA_RUNNER_CAPACITY}
# On stop (before an update reboot), take no new jobs and give running ones this long to finish.
shutdown_timeout: 30m
envs:
# 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 (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:
# Jobs build OS images, which needs root: they run privileged on root's podman.
privileged: true
# podman can't keep its storage, or build contexts, on the job's own overlay root.
options: --volume /var/lib/containers --volume /var/tmp
# Jobs run their own podman, never the runner's.
docker_host: "-"
volumes:
# Base images, pulled at boot by gitea-runner-images.service; podman in jobs uses them read-only.
- /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
# 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
port: 8088