From 56cb7ce6dc49d158fe1d95d21ff9bb94bb0011af Mon Sep 17 00:00:00 2001 From: Ryan Moon Date: Fri, 3 Apr 2026 07:32:18 -0500 Subject: [PATCH] fix: auto-register runner if .runner file missing, store state in /data Co-Authored-By: Claude Sonnet 4.6 --- runner/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runner/deployment.yaml b/runner/deployment.yaml index e9018b6..ea2e404 100644 --- a/runner/deployment.yaml +++ b/runner/deployment.yaml @@ -24,7 +24,8 @@ spec: containers: - name: runner image: gitea/act_runner:latest - command: ["sh", "-c", "until nc -z localhost 2375 2>/dev/null; do echo 'waiting for dind...'; sleep 2; done && exec /usr/local/bin/act_runner daemon"] + workingDir: /data + command: ["sh", "-c", "until nc -z localhost 2375 2>/dev/null; do echo 'waiting for dind...'; sleep 2; done && if [ ! -f /data/.runner ]; then /usr/local/bin/act_runner register --no-interactive --instance \"$GITEA_INSTANCE_URL\" --token \"$GITEA_RUNNER_REGISTRATION_TOKEN\" --name \"$GITEA_RUNNER_NAME\" --config \"$CONFIG_FILE\"; fi && exec /usr/local/bin/act_runner daemon --config \"$CONFIG_FILE\""] resources: requests: cpu: 100m