Install gitea-runner on a VM as a systemd service

One hosts/<host>.env per runner (name, user, labels, capacity) and an
idempotent install.sh: pinned VERSION with sha256 check, minimal
config.yaml and .runner in /var/lib/gitea-runner, upstream's systemd
unit. Replaces stpweb's gitea-runner/ and stpbuild's untracked copy,
both started by @reboot cron.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-27 13:43:11 +00:00
co-authored by Claude Opus 5.5
commit ee25ab4abb
6 changed files with 269 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# stpbuild (Proxmox VM 123, 192.168.178.240): the build VM. Instance-wide;
# tests, image builds and Renovate for every repo (`runs-on: build`). Host
# mode as adamf (docker group, passwordless sudo for apt in jobs). No SSH key:
# jobs fetch over HTTP with their own GITEA_TOKEN.
RUNNER_NAME=stpbuild-runner
RUNNER_USER=adamf
RUNNER_CAPACITY=2
RUNNER_LABELS="build:host"
+8
View File
@@ -0,0 +1,8 @@
# stpvm (Proxmox VM 106): the stpweb host. Takes only the jobs that touch that
# stack (`self-hosted`: deploys, maintenance). Host mode as adamf, who owns
# ~/deploy/stpweb and the SSH key the deploy job fetches with. The ubuntu-*
# labels run jobs in containers. Registered as `stppi` until 2026-11-27.
RUNNER_NAME=stpvm
RUNNER_USER=adamf
RUNNER_CAPACITY=1
RUNNER_LABELS="self-hosted:host,ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest,ubuntu-24.04:docker://docker.gitea.com/runner-images:ubuntu-24.04,ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"