From acc6876e331b8d2b0be3a26a23a0513e99e4d583 Mon Sep 17 00:00:00 2001 From: Adam French Date: Tue, 24 Nov 2026 17:26:36 +0000 Subject: [PATCH] CI: fetch from git.adam-french.co.uk instead of localhost 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 --- .gitea/workflows/ci.yaml | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index cfcda42..036a41e 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -34,7 +34,7 @@ jobs: env: SHA: ${{ github.sha }} 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" CACHE: /home/adamf/.cache/job-tracker-ci/repo.git SRC: /home/adamf/.cache/job-tracker-ci/src-${{ github.sha }} @@ -87,7 +87,7 @@ jobs: runs-on: self-hosted env: 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" CACHE: /home/adamf/.cache/job-tracker-ci/repo.git SRC: /home/adamf/.cache/job-tracker-ci/publish-${{ github.sha }} diff --git a/README.md b/README.md index a679fb4..345438d 100644 --- a/README.md +++ b/README.md @@ -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`. -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.