Fix runner: use explicit register + daemon with --config flag
All checks were successful
CI / changes (push) Successful in 1s
CI / lint-and-test (push) Successful in 32s
CI / build (push) Has been skipped

The act_runner entrypoint ignores CONFIG_FILE for the daemon
command, so container.options (pnpm cache volume) never loads.
Use a custom command that registers manually then runs daemon
with --config explicitly.
This commit is contained in:
Julia McGhee
2026-03-21 17:23:25 +00:00
parent d13bc9103a
commit 64baf319fe

View File

@@ -18,9 +18,21 @@ spec:
containers:
- name: runner
image: gitea/act_runner:latest
command:
- sh
- -c
- |
if [ ! -f /data/.runner ]; then
act_runner register \
--instance "$GITEA_INSTANCE_URL" \
--token "$GITEA_RUNNER_REGISTRATION_TOKEN" \
--labels "$GITEA_RUNNER_LABELS" \
--config /config/config.yaml \
--no-interactive
fi
exec act_runner daemon --config /config/config.yaml
workingDir: /data
env:
- name: CONFIG_FILE
value: /config/config.yaml
- name: GITEA_INSTANCE_URL
value: http://gitea-helm-http.platform.svc:3000
- name: GITEA_RUNNER_REGISTRATION_TOKEN