CI: fetch from git.adam-french.co.uk instead of localhost
Test and publish / test (push) Successful in 1m19s
Test and publish / publish (push) Successful in 57s

Gitea runs on its own LXC, and stpvm's localhost:2222 forwarder to it is
being removed. stpvm pins git.adam-french.co.uk to the LXC's LAN IP in
/etc/hosts, so the self-hosted job reaches it directly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 17:26:36 +00:00
co-authored by Claude Opus 5.5
parent 1147bc5697
commit acc6876e33
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ jobs:
env: env:
SHA: ${{ github.sha }} SHA: ${{ github.sha }}
REF: ${{ github.ref }} REF: ${{ github.ref }}
REMOTE: ssh://git@localhost:2222/adamf/job-tracker.git REMOTE: ssh://git@git.adam-french.co.uk:2222/adamf/job-tracker.git
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
CACHE: /home/adamf/.cache/job-tracker-ci/repo.git CACHE: /home/adamf/.cache/job-tracker-ci/repo.git
SRC: /home/adamf/.cache/job-tracker-ci/src-${{ github.sha }} SRC: /home/adamf/.cache/job-tracker-ci/src-${{ github.sha }}
@@ -87,7 +87,7 @@ jobs:
runs-on: self-hosted runs-on: self-hosted
env: env:
SHA: ${{ github.sha }} SHA: ${{ github.sha }}
REMOTE: ssh://git@localhost:2222/adamf/job-tracker.git REMOTE: ssh://git@git.adam-french.co.uk:2222/adamf/job-tracker.git
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
CACHE: /home/adamf/.cache/job-tracker-ci/repo.git CACHE: /home/adamf/.cache/job-tracker-ci/repo.git
SRC: /home/adamf/.cache/job-tracker-ci/publish-${{ github.sha }} SRC: /home/adamf/.cache/job-tracker-ci/publish-${{ github.sha }}
+2 -2
View File
@@ -85,9 +85,9 @@ The image lives in this Gitea's container registry. Two things make that less si
So the apex server block in web_server's `nginx/nginx.conf.template` proxies `/v2/` to Gitea and redirects everything else. That was added in web_server commit `da2ab9f`. So the apex server block in web_server's `nginx/nginx.conf.template` proxies `/v2/` to Gitea and redirects everything else. That was added in web_server commit `da2ab9f`.
1. **Check Gitea's registry is on.** On the host, bypassing nginx: 1. **Check Gitea's registry is on.** On stpvm, straight to the Gitea LXC (the name is pinned to its LAN IP in /etc/hosts):
``` ```
curl -si http://localhost:3000/v2/ | head -5 curl -si http://git.adam-french.co.uk:3000/v2/ | head -5
``` ```
You want a `401` with `Www-Authenticate: Bearer realm="https://adam-french.co.uk/v2/token"`. A `404` means packages are off: add `[packages]` with `ENABLED = true` to Gitea's `app.ini.template` and recreate Gitea. You want a `401` with `Www-Authenticate: Bearer realm="https://adam-french.co.uk/v2/token"`. A `404` means packages are off: add `[packages]` with `ENABLED = true` to Gitea's `app.ini.template` and recreate Gitea.