# 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