2026-09-11 22:24:41 -04:00
|
|
|
apiVersion: v1
|
|
|
|
|
kind: ConfigMap
|
|
|
|
|
metadata:
|
|
|
|
|
name: forgejo-runner-config
|
|
|
|
|
namespace: forgejo
|
|
|
|
|
data:
|
2026-09-11 22:34:33 -04:00
|
|
|
arm64.toml: |
|
2026-09-11 22:24:41 -04:00
|
|
|
log:
|
|
|
|
|
level: info
|
|
|
|
|
runner:
|
|
|
|
|
file: /config/runner.ini
|
2026-09-12 01:48:10 -04:00
|
|
|
# capacity 1: ci.yml builds every job's Rust target into ONE shared named
|
|
|
|
|
# volume (onionwire-target-ci, mounted at /target). Two jobs writing that
|
|
|
|
|
# volume concurrently clobber each other's freshly-linked test binaries,
|
|
|
|
|
# which then fail with "could not execute process ... (never executed)
|
|
|
|
|
# Permission denied (os error 13)". capacity 1 is the enforced serializer
|
|
|
|
|
# because Forgejo's `concurrency.group` was observed NOT serializing two
|
|
|
|
|
# runs of the same group on this runner (446 + 447 overlapped).
|
|
|
|
|
capacity: 1
|
2026-09-11 22:24:41 -04:00
|
|
|
timeout: 1h
|
|
|
|
|
cache: /opt/siriusdevops/runner/cache
|
|
|
|
|
cache:
|
|
|
|
|
enabled: true
|
|
|
|
|
dir: /opt/siriusdevops/runner/cache
|
|
|
|
|
container:
|
|
|
|
|
privileged: true
|
2026-09-11 23:05:36 -04:00
|
|
|
# No docker_host here: setting it makes the runner inject the host socket
|
|
|
|
|
# bind into the job container itself, which collides with the explicit
|
|
|
|
|
# -v /var/run/docker.sock in options ("Duplicate mount point").
|
2026-09-11 22:24:41 -04:00
|
|
|
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:
|
|
|
|
|
- "**"
|
2026-10-22 23:52:54 -04:00
|
|
|
# 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:
|
|
|
|
|
- "**"
|
|
|
|
|
|
2026-09-11 22:34:33 -04:00
|
|
|
amd64.toml: |
|
|
|
|
|
log:
|
|
|
|
|
level: info
|
|
|
|
|
runner:
|
|
|
|
|
file: /data/runner.ini
|
2026-09-12 01:25:51 -04:00
|
|
|
# capacity 1: the dind daemon on this runner holds the release/CI build
|
|
|
|
|
# containers and images. Two concurrent x86_64 builds on it made the
|
|
|
|
|
# *second* build's egress fail (apt looping on "Ign:" for Debian
|
|
|
|
|
# InRelease) while a single build on the same daemon succeeded.
|
|
|
|
|
capacity: 1
|
2026-09-11 22:34:33 -04:00
|
|
|
timeout: 1h
|
|
|
|
|
cache: /data/cache
|
|
|
|
|
cache:
|
|
|
|
|
enabled: true
|
|
|
|
|
dir: /data/cache
|
|
|
|
|
container:
|
|
|
|
|
privileged: true
|
2026-09-11 22:37:09 -04:00
|
|
|
docker_host: "unix:///var/run/docker.sock"
|
2026-09-18 20:48:50 -04:00
|
|
|
force_pull: true
|
2026-09-11 22:34:33 -04:00
|
|
|
valid_volumes:
|
|
|
|
|
- "**"
|