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