Fix runner: use explicit register + daemon with --config flag
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:
@@ -18,9 +18,21 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: gitea/act_runner:latest
|
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:
|
env:
|
||||||
- name: CONFIG_FILE
|
|
||||||
value: /config/config.yaml
|
|
||||||
- name: GITEA_INSTANCE_URL
|
- name: GITEA_INSTANCE_URL
|
||||||
value: http://gitea-helm-http.platform.svc:3000
|
value: http://gitea-helm-http.platform.svc:3000
|
||||||
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
||||||
|
|||||||
Reference in New Issue
Block a user