Files
runneros/mkosi.extra/etc/gitea-runner/config.yaml
T
Job79andClaude Opus 5.5 d1c7c55700
os / os (push) Failing after 2m42s
Run jobs in our own job image
mkosi.images/job/ builds an OCI image with git, Node.js 26 and dnf, and
the OS ships it in /usr, so it is signed and updated with the OS.
gitea-runner.service loads it at boot instead of pulling Fedora, and
JavaScript actions work without installing Node.js in each job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:48:04 +00:00

27 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
# 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