Fix CI: host-mode runner has no Node.js for actions/checkout
CI / check (push) Successful in 7m3s
CI / deploy (push) Failing after 1s

Host-mode jobs run directly in the runner container instead of a
spawned per-job container, so JS actions like actions/checkout@v4
have no Node.js runtime to execute with. Replace it with a plain git
fetch/checkout in the deploy job.
This commit is contained in:
randy committed 2026-08-27 15:39:47 +02:00
1 parent 3a79c3d6c1
commit 71e638b459
2 files changed
+15 -1

No files matched your search

+5
View File
@@ -112,6 +112,11 @@ of Puma's bind address.
`.gitea/workflows/ci.yml`'s `deploy` job runs after `check` passes, only
on a push to `main`, with `runs-on: host`:
. Checks out the repo with plain `git` (`fetch` + `checkout`,
authenticated via a one-off `http.extraHeader`), not
`actions/checkout@v4` — that's a JS action, and host-mode jobs run
directly in the runner container, which has `git` but no Node.js
runtime to execute JS actions with.
. Copies the checkout into `/srv/docker/maptool/` using plain
`cp`/`rm` (no `rsync` in the runner image): clears everything in the
target except `data/`, copies the fresh checkout over, then drops