CI: run tests and Renovate on the build VM
Test and deploy / test (push) Successful in 1m40s
Test and deploy / deploy (push) Successful in 4s

The test job and Renovate move to stpbuild's runner (label `build`), a
new Proxmox VM; deploy and maintenance stay on stpvm (`self-hosted`).
test fetches over HTTP with the job's own GITEA_TOKEN. DEPLOYMENT.md
gains a "Build VM" section, and CLAUDE.md says where each job runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:00:13 +00:00
co-authored by Claude Opus 5.5
parent 18265871e1
commit 3139e8e239
4 changed files with 34 additions and 8 deletions
+16
View File
@@ -723,6 +723,22 @@ nothing, so pull and `up -d` there afterwards.
`docker compose -f docker-compose.yml -f .deprecated/gitea/docker-compose.gitea.yml up -d gitea`.
`.deprecated/README.md` has the details.
**Build VM (stpbuild).** Since 2026-11-26 CI is split over two runners.
stpvm's (`self-hosted`, in `gitea-runner/` here) keeps only the jobs that
touch this stack: `deploy` in this repo's deploy.yaml and in usaco's and
activity-tracker's ci.yaml, and maintenance.yaml. Everything that only needs
git and docker (tests, image builds and pushes, Renovate) runs on
`stpbuild-runner` (label `build`, instance-wide, capacity 2), on the Proxmox
VM `stpbuild` (VMID 123, `192.168.178.240`, Ubuntu 24.04, 4 cores, 2 GB + 4 GB
swapfile), from `~/deploy/stpbuild/gitea-runner` with an `@reboot` crontab
line. Its `/etc/hosts` pins `git.<DOMAIN>` to stpgit's LAN IP and the apex to
stpvm's (registry pushes go to this Caddy over the LAN, not Cloudflare). It
has no SSH key: build jobs fetch from `http://git.<DOMAIN>:3000/` with the
job's own `secrets.GITEA_TOKEN`, so a new repo needs no Gitea setup, only
`runs-on: build`. A `publish` job reuses its `test` job's git cache, so both
must stay on `build`. stpweb's own images are still built here by
`up --build`; moving them is the next step.
**Set up the CI runner on a fresh host:**
```