30 lines
1021 B
TOML
30 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"
|