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 <[email protected]>
This commit is contained in:
@@ -5,9 +5,10 @@
|
|||||||
# GitHub, where `ubuntu-latest` + actions/checkout work.
|
# GitHub, where `ubuntu-latest` + actions/checkout work.
|
||||||
#
|
#
|
||||||
# WHY NOT THE GITHUB WORKFLOW AS-IS
|
# WHY NOT THE GITHUB WORKFLOW AS-IS
|
||||||
# The act_runner on stpvm is registered against http://localhost:3000.
|
# The act_runner on stpvm is registered against Gitea over the LAN
|
||||||
# `ubuntu-latest` jobs run in a docker container, where localhost is the
|
# (http://git.adam-french.co.uk:3000, pinned in stpvm's /etc/hosts).
|
||||||
# container itself, so actions/checkout can't reach Gitea and every run
|
# `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
|
# 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
|
# 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.
|
# over Gitea's SSH port, and runs the checks inside pinned python images.
|
||||||
@@ -28,7 +29,7 @@ jobs:
|
|||||||
SHA: ${{ github.sha }}
|
SHA: ${{ github.sha }}
|
||||||
REF: ${{ github.ref }}
|
REF: ${{ github.ref }}
|
||||||
PYTHON: ${{ matrix.python }}
|
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"
|
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
|
||||||
# Bare repo kept between runs so each fetch is incremental.
|
# Bare repo kept between runs so each fetch is incremental.
|
||||||
CACHE: /home/adamf/.cache/receipt_maker-ci/repo.git
|
CACHE: /home/adamf/.cache/receipt_maker-ci/repo.git
|
||||||
|
|||||||
Reference in New Issue
Block a user