Files
nixfiles/docs/sites/colony/git.md
T
jackos1998andClaude Opus 5.5 139afc004e colony/git: Match Gitea task timeout to runner
Gitea's default `ENDLESS_TASK_TIMEOUT` of 3h marked long CI jobs as
failed while the runner kept building, leaving an orphaned job
container. Raise it to the runner's 8h job timeout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 15:51:05 +00:00

2.7 KiB

git

The Gitea VM — source hosting and CI for the boxes (git.nul.ie).

Role

Gitea

The Git forge at git.nul.ie (self-registration disabled), configured in gitea.nix.

  • Backed by PostgreSQL on colony-psql (waited on via lib.my.systemdAwaitPostgres).
  • LFS enabled; all object storage (incl. LFS and packages) is on MinIO at s3.nul.ie (bucket gitea, on object) — the secret is spliced into app.ini at startup.
  • Mail goes out via mail.nul.ie, including the issue-reply incoming-mail poller.

Gitea Actions runner

One Docker-mode instance (main-docker) on podman (privileged, podman network), configured in gitea-actions.nix.

  • Labels for node:24-trixie and the self-built git.nul.ie/dev/actions-ubuntu:26.04 images.
  • Runs as a fixed gitea-runner user (not DynamicUser) so it can read its token; jobs have a configured timeout.
  • Gitea's actions.ENDLESS_TASK_TIMEOUT matches the runner's job timeout. Otherwise the server's shorter default marks long builds as failed while the runner keeps working on them.
  • The action cache lives on a dedicated disk (/var/cache/gitea-runner).
  • Executes the repo's own .gitea/workflows/ci.yaml.

nginx

Terminates TLS for git.nul.ie (and a default vhost) and proxies to Gitea on :3000. ACME (Let's Encrypt, production) issues nul.ie + *.nul.ie via the Cloudflare DNS-01 challenge.

podman

Local container backend for the runner; /var/lib/containers is an XFS data disk, and the default 10.88.0.0/16 podman subnet is allowed to forward.

Network assignments

See the consolidated network assignments table (this box: git).

Storage

  • /var/lib/gitea — the git LV (repositories, config).
  • /var/cache/gitea-runner — the gitea-actions-cache LV.
  • /var/lib/containers — the oci LV (XFS with project quotas). Despite the name this is local to the git VM and unrelated to whale2's oci network.

Notable config files