act-runners/kubectl: image revision
act-fatboy.yml / build-container-image (push) Successful in 1m44s
act-runner-fatboy-deploy.yml / build-container-image (push) Successful in 18s
act-runner-kubectl.yml / build-container-image (push) Successful in 25s

This commit is contained in:
Márcio Fernandes
2026-09-03 23:45:01 +01:00
parent d399d6118a
commit 2344564ed4
6 changed files with 167 additions and 13 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
if [ ! -f "$GITEA_RUNNER_CONFIG_FILE" ]; then
echo "ERROR: Config file not found at $GITEA_RUNNER_CONFIG_FILE"
exit 1
fi
cd /home/runner/data
if [ ! -f ".runner" ]; then
echo "Registering runner..."
act_runner register \
-c "$GITEA_RUNNER_CONFIG_FILE" \
--instance "$GITEA_INSTANCE_URL" \
--token "$GITEA_RUNNER_REGISTRATION_TOKEN" \
--name "$GITEA_RUNNER_NAME" \
--labels "$GITEA_RUNNER_LABELS"
fi
echo "Starting runner..."
exec act_runner daemon \
-c "$GITEA_RUNNER_CONFIG_FILE"