Files
teahub/runner/fly.toml
T
Claude 0cd7a970f2 runner: green-tea-runner config in repo; fix lost jobs (fetch_timeout 5s -> 30s)
The runner abandoned tasks Gitea had already assigned when FetchTask took
longer than the default 5s fetch_timeout, leaving runs in_progress with no
logs until Gitea's zombie sweep failed them (~15 min). Raise fetch_timeout
to 30s, cap jobs at 1h, and keep the Fly config + runner config here so the
runner can be rebuilt from the repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVFi3wvLWKaEkpDw6eLnQC
2026-10-25 15:24:12 -07:00

31 lines
1021 B
TOML

# Fly app green-tea-runner: Gitea Actions runner (act_runner 5.0.0-dind), instance-wide as fly-iad-1.
# Deploy: fly deploy -c runner/fly.toml (from repo root). Registration token is a Fly secret.
app = "green-tea-runner"
primary_region = "iad"
[build]
image = "docker.gitea.com/act_runner:5.0.0-dind"
[experimental]
# Fly's rootfs is overlay, so Docker's data root must live on the volume.
entrypoint = ["sh", "-c", "mkdir -p /data/docker && rm -rf /var/lib/docker && ln -sfn /data/docker /var/lib/docker && exec s6-svscan /etc/s6"]
[env]
DOCKER_HOST = "unix:///var/run/docker.sock"
GITEA_INSTANCE_URL = "https://teahub.xyz"
GITEA_RUNNER_LABELS = "ubuntu-latest:docker://node:22-bookworm,ubuntu-22.04:docker://node:22-bookworm"
GITEA_RUNNER_NAME = "fly-iad-1"
CONFIG_FILE = "/etc/gitea-runner/config.yaml"
[[files]]
guest_path = "/etc/gitea-runner/config.yaml"
local_path = "config.yaml"
[mounts]
source = "runner_data"
destination = "/data"
[[vm]]
size = "shared-cpu-2x"
memory = "4gb"