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:
@@ -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 }}
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user