Describe the CI host as stpvm, not the Pi
The site and its runner moved from the arm64 Pi to stpvm (x86-64, Docker 29), so the comments about the build host, its Docker version and the image architecture were wrong. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+3
-3
@@ -100,7 +100,7 @@ A push to `main` that touches `site/` or `.gitea/workflows/` runs `.gitea/workfl
|
||||
|
||||
Problem commits don't match the path filter, so they never rebuild the image. The webhook brings them in.
|
||||
|
||||
By hand on the Pi:
|
||||
By hand on the host:
|
||||
|
||||
```
|
||||
cd ~/deploy/web_server && docker compose pull usaco && docker compose up -d --no-deps usaco
|
||||
@@ -110,11 +110,11 @@ To pin a version, set `USACO_IMAGE_TAG=<sha>` in the site's `.env`.
|
||||
|
||||
### One-off setup
|
||||
|
||||
The registry setup is shared with job-tracker (see its README, "One-off: registry setup"). The Pi is already logged in, and the same `REGISTRY_USER` and `REGISTRY_TOKEN` work here.
|
||||
The registry setup is shared with job-tracker (see its README, "One-off: registry setup"). The host is already logged in, and the same `REGISTRY_USER` and `REGISTRY_TOKEN` work here.
|
||||
|
||||
1. **CI secrets.** In this repo's Settings → Actions → Secrets, add `REGISTRY_USER` and `REGISTRY_TOKEN`. Use the same values as job-tracker.
|
||||
2. **A git token for the server.** In Gitea, go to Settings → Applications and create a token with **repository: read and write**. Put it in the site's `.env` as `USACO_GIT_TOKEN`.
|
||||
3. **The data directory.** On the Pi, in `~/deploy/web_server`, run `mkdir usaco-data && sudo chown 1000:1000 usaco-data`.
|
||||
3. **The data directory.** On the host, in `~/deploy/web_server`, run `mkdir usaco-data && sudo chown 1000:1000 usaco-data`.
|
||||
4. **A webhook secret.** Generate one, for example with `openssl rand -hex 32`, and put it in the site's `.env` as `USACO_WEBHOOK_SECRET`.
|
||||
5. **Deploy web_server** with the `usaco` service and the `/usaco/` route. Then push this repo, so CI publishes the first image.
|
||||
6. **The webhook.** In this repo's Settings → Webhooks → Add webhook → Gitea, set:
|
||||
|
||||
Reference in New Issue
Block a user