Files
teahub/runner/fly.cron.toml
T

30 lines
1021 B
TOML
Raw Normal View History

# Fly app green-tea-runner-cron: cron-lane Gitea Actions runner (label `cron`) for scheduled/ops jobs, so they never queue ahead of deploys.
# Deploy: cd runner && fly deploy -c fly.cron.toml. Registration token is a Fly secret.
app = "green-tea-runner-cron"
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 = "cron:docker://node:22-bookworm"
GITEA_RUNNER_NAME = "fly-iad-cron-1"
CONFIG_FILE = "/etc/gitea-runner/config.yaml"
[[files]]
guest_path = "/etc/gitea-runner/config.yaml"
local_path = "config.yaml"
[mounts]
source = "runner_cron_data"
destination = "/data"
[[vm]]
size = "shared-cpu-1x"
memory = "2gb"