From 73e941da96d1e66295324272d7dd21b7fd7a4bc4 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.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bda89e9..42d8d0a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,9 +5,10 @@ # GitHub, where `ubuntu-latest` + actions/checkout work. # # WHY NOT THE GITHUB WORKFLOW AS-IS -# The act_runner on stpvm is registered against http://localhost:3000. -# `ubuntu-latest` jobs run in a docker container, where localhost is the -# container itself, so actions/checkout can't reach Gitea and every run +# The act_runner on stpvm is registered against Gitea over the LAN +# (http://git.adam-french.co.uk:3000, pinned in stpvm's /etc/hosts). +# `ubuntu-latest` jobs run in a docker container, which sees neither that +# pin nor the host, so actions/checkout couldn't reach Gitea and every run # failed before a test ran. Like web_server's deploy.yaml, this runs in # the runner's host mode (`self-hosted`), fetches the commit with plain git # over Gitea's SSH port, and runs the checks inside pinned python images. @@ -28,7 +29,7 @@ jobs: SHA: ${{ github.sha }} REF: ${{ github.ref }} PYTHON: ${{ matrix.python }} - REMOTE: ssh://git@localhost:2222/adamf/receipt_maker.git + REMOTE: ssh://git@git.adam-french.co.uk:2222/adamf/receipt_maker.git GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" # Bare repo kept between runs so each fetch is incremental. CACHE: /home/adamf/.cache/receipt_maker-ci/repo.git