forgejo: dedicated deploy-arm64 runner so CI cannot starve site deploys

deploy-site.yml must run on the Pi (127.0.0.1:5000 registry, Garage on host
network, host docker socket) but the Pi's only runner also serves every
runs-on: docker job in the instance. An onionwire Rust ci build therefore held
the single docker slot while the sirius-growth deploy sat in 'waiting'.

Adds a second runner instance on rpi declaring only the deploy-arm64 label,
with its own hostPath-backed registration (/opt/siriusdevops/runner-deploy/data)
so a pod restart reuses it instead of burning a single-use runner token.
This commit is contained in:
Sirius DevOps 2026-10-22 23:52:54 -04:00
commit 1576240941
3 changed files with 169 additions and 0 deletions

View file

@ -30,6 +30,34 @@ data:
options: -v /usr/local/bin/docker-static:/usr/bin/docker:ro -v /opt/siriusdevops/runner/cli-plugins:/usr/local/lib/docker/cli-plugins:ro -v /var/run/docker.sock:/var/run/docker.sock
valid_volumes:
- "**"
# Dedicated runner for site deploys. It declares ONLY the `deploy-arm64`
# label, so `runs-on: docker` CI jobs (onionwire ci, minutes to hours of Rust)
# can never occupy it and starve a deploy. The converse also holds: a deploy
# can never occupy the Pi's `docker` runner, whose capacity 1 exists to
# serialize onionwire jobs sharing the onionwire-target-ci volume.
#
# It runs on the Pi because deploy-site.yml needs Pi-local resources:
# 127.0.0.1:5000 (registry), 127.0.0.1:3900 (Garage) via `--network host`,
# and the host docker socket to build the arm64 site image.
deploy-arm64.toml: |
log:
level: info
runner:
file: /data/runner.ini
capacity: 1
timeout: 30m
cache: /data/cache
cache:
enabled: true
dir: /data/cache
container:
privileged: true
# Same injection as arm64.toml: the job container is node:20-bullseye,
# which has no docker CLI and no buildx, and deploy-site.yml needs both.
options: -v /usr/local/bin/docker-static:/usr/bin/docker:ro -v /opt/siriusdevops/runner/cli-plugins:/usr/local/lib/docker/cli-plugins:ro -v /var/run/docker.sock:/var/run/docker.sock
valid_volumes:
- "**"
amd64.toml: |
log:
level: info