Files
runneros/mkosi.extra/etc/gitea-runner/config.yaml
T
Job79andClaude Opus 5.5 018f15172d Ask for the registration and capacity at first boot
gitea-runner-setup asks on the console for the number of parallel jobs,
the Gitea URL and a registration token, and registers the runner. It runs
until the runner is registered, and logins wait for it, as for
systemd-firstboot. The capacity goes to a drop-in of gitea-runner.service,
which passes it to the config as CAPACITY, so the config stays read-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 18:57:23 +00:00

29 lines
1.3 KiB
YAML

# config.yaml configures the runner (gitea-runner.service). It lists only what
# differs from the defaults, which `gitea-runner config generate` prints.
#
# The image links it into /etc read-only
# (mkosi.extra/usr/lib/tmpfiles.d/factory-etc.conf). To change it on one
# machine, replace the link with a copy. Updates then no longer change it.
runner:
# file is where `gitea-runner register` keeps the registration, wherever it
# runs. gitea-runner.path starts the runner once it is there.
file: /var/lib/gitea-runner/.runner
# capacity is the number of parallel jobs, set by gitea-runner.service.
capacity: ${CAPACITY}
# shutdown_timeout lets running jobs finish when the runner stops, as it
# does before an update reboots the machine.
shutdown_timeout: 1h
# labels names the job image of jobs with runs-on: linux, which
# gitea-runner.service loads at boot.
labels:
- linux:docker://localhost/runneros-job
container:
# privileged lets jobs build OS images, as this repository's own workflow
# does. A job can then take over the machine, so only run jobs you trust.
privileged: true
# docker_host "-" keeps podman's socket out of the jobs.
docker_host: "-"
# options gives each job a /var/tmp volume. On the container's overlayfs,
# mkosi loses the xattrs of the files it copies, such as file capabilities.
options: --volume /var/tmp