Gitea Actions Runner (gitea_runner)
Standalone act_runner for Gitea Actions, built with Nix (nix-command and flakes enabled), git, bash, and nodejs for host-mode (:host) execution.
Architecture
- Host-Mode Execution (
:host): Core platform security bans direct Docker socket mounts and enforces a read-onlysocket-proxy(POST=0), soact_runnercannot spawndocker://job containers. Jobs run directly inside the runner container via:hostlabels (ubuntu-latest:host,nix:host). - Persistent State & Nix Cache:
- Runner registration and workspace state:
../../var/lib/homelab/gitea_runner:/data(resolves relative to~/Workloads/gitea_runnerto~/var/lib/homelab/gitea_runnerwithout requiringHOMEor${...}interpolation). - Nix store cache: named Docker volume
nix-store:/nixso evaluated derivations persist across rebuilds. If/nix/var/nix/profiles/default/bin/nixis missing or broken on an existing volume,entrypoint-nix.shseeds/nixfrom/opt/nix-seed.tar.gz.
- Runner registration and workspace state:
Configuration
See .env-example for required runtime variables:
GITEA_INSTANCE_URL: Internal or external Gitea URL (defaulthttp://gitea:3000overproxy-net).GITEA_RUNNER_TOKEN: One-time runner registration token (injected intoGITEA_RUNNER_REGISTRATION_TOKENin Compose).GITEA_RUNNER_NAME: Runner display name (defaulthomelab-runner).GITEA_RUNNER_LABELS: Comma-separated:hostlabels (defaultubuntu-latest:host,nix:host).