Files
vigilcare-clinical/docs/CICD/platform/config/runner.yaml
T
Trent 1c1065938f
CI / changes (push) Successful in 47s
CI / frontend (push) Skipped
CI / backend (push) Successful in 43m10s
Pull MinIO from the Gitea-mirrored pgsty image after upstream Hub/Quay removal.
2026-09-30 23:09:01 +08:00

73 lines
3.0 KiB
YAML

# gcp-runner-01 — Gitea Runner 4.0.0 (upgraded from act_runner 0.6.1 on 2026-09-29)
#
# Only non-default values. Full schema: `gitea-runner config init`.
# No hot-reload: `docker compose restart runner` after any edit.
# Host is e2-standard-2 (2 vCPU / 8 GB) shared with Gitea and ~15 app containers —
# see ../observed-state.md#host-budget before raising anything here.
log:
level: info
runner:
# 2 vCPU / 8 GB shared with Gitea. Measured: one backend job costs ~1 GB of
# availability, leaving ~900 MB. Two would land near zero. Do not raise.
capacity: 1
# Let an in-flight job drain on restart instead of being cancelled (default 0s).
# compose stop_grace_period must exceed this.
shutdown_timeout: 3m
# The label IS the toolchain image. Mirrored from ghcr.io/catthehacker/ubuntu:act-latest
# on 2026-09-29 and digest-pinned; the package is public so the runner pulls anonymously
# (runner 2.0 removed implicit pull credentials). Toolchain log: ../observed-state.md.
labels:
- "ubuntu-latest:docker://git.vectur45.com/trent/ci-ubuntu:act-2026-09-29@sha256:62d572b92f9f32d3427b6d220ad1f9dca9c7b6ffad37d295425037dbff78abaf"
# A job whose runs-on matches no label above would otherwise pull
# docker.gitea.com/runner-images:ubuntu-latest from an external registry.
default_image: "git.vectur45.com/trent/ci-ubuntu:act-2026-09-29"
# One RUNNER_TOOL_CACHE across jobs, so setup-dotnet / setup-node stop re-installing
# the same SDK every run. Documented safe ONLY at capacity 1.
tool_cache_mode: shared
cache:
enabled: true
# Default is $HOME/.cache/actcache INSIDE the container, discarded on every recreate.
# On the runner-data volume it survives restarts and image pins.
dir: /data/cache
# Reuse a cached copy of an action instead of fetching it from github.com on every job.
# Trade-off: a moved tag stays at the cached commit until the entry expires.
offline_mode: true
container:
# Per-job network with DNS aliases, so `Host=postgres` / `redis:6379` resolve.
# Under `bridge` there are no aliases — that is what the old high-port workaround
# in ci.yml existed for.
network: ""
# Still wanted for anything genuinely published on the host.
# `--memory=3g` was silently ignored on 0.6.1 (HostConfig.Memory: 0). 4.x says
# runner-level options keep working where a workflow's are stripped — retest before
# trusting it, and re-check ExtraHosts after any edit, since one unparsed flag can
# invalidate the whole string.
options: >-
--add-host=host.docker.internal:host-gateway
privileged: false
valid_volumes: []
# 4.x default is already false, and a digest-pinned image is never re-pulled anyway.
# Kept explicit so the intent survives a future label change.
force_pull: false
# Pauses task fetching (running jobs continue) when free space drops below the floor.
# Also bounds cache eviction. Impossible on 0.6.1.
health_check:
enabled: true
min_free_disk_space_mb: 10240
metrics:
# /metrics, /healthz and /readyz — loopback only, no authentication.
enabled: true
addr: "127.0.0.1:9101"