diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index bd82786..0f06114 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -30,6 +30,8 @@ jobs: build: # Register a trusted host-mode runner with this label. It only needs # Podman, Bash, Git, and Node.js for the actions used below. + # Its cache.host must be reachable from both host jobs and Podman jobs; + # host.containers.internal only resolves inside the latter. runs-on: linux_amd64 timeout-minutes: 180 diff --git a/docs/gitea-actions.md b/docs/gitea-actions.md index aa16904..0909ed4 100644 --- a/docs/gitea-actions.md +++ b/docs/gitea-actions.md @@ -59,6 +59,13 @@ The runner host needs Podman, Bash, Git, and Node.js. Keep this host-mode runner restricted to repositories you trust: workflows execute commands as the runner user and can access everything that user can access. +Set `cache.host` in the runner configuration to an address reachable from both +the host and Podman containers, then restart the runner. This endpoint serves +both `actions/cache` and `actions/upload-artifact`. Do not use +`host.containers.internal` for a host-mode job: that name resolves inside +Podman containers but not on the host, causing `ENOTFOUND` during cache restore +and artifact upload. On the current runner, the stable address is `10.12.4.170`. + For example, after downloading `act_runner`, obtain a repository runner token from **Settings > Actions > Runners**, then run: