fix(runner): switch GITEA_RUNNER_LABELS to host mode to fix Docker not found in CI

This commit is contained in:
xtcnet 2026-03-18 19:21:04 +07:00
parent 23f197aeb1
commit e9367b535d

View file

@ -812,7 +812,7 @@ do_forgejo_runner_install() {
-e GITEA_INSTANCE_URL="${forgejo_url}" \
-e GITEA_RUNNER_REGISTRATION_TOKEN="${runner_token}" \
-e GITEA_RUNNER_NAME="$(hostname)-runner" \
-e GITEA_RUNNER_LABELS="ubuntu-latest:docker://node:20-bullseye,ubuntu-22.04:docker://node:20-bullseye" \
-e GITEA_RUNNER_LABELS="ubuntu-latest:host,ubuntu-22.04:host" \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "${FORGEJO_RUNNER_DIR}:/data" \
"${FORGEJO_RUNNER_IMAGE}"