feat: Add auto-registration for Gitea act runner in deployment.yaml
Some checks failed
CI/CD Pipeline / backend-lint (push) Failing after 27s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / frontend-lint (push) Failing after 1m22s
CI/CD Pipeline / frontend-build (push) Has been skipped
CI/CD Pipeline / e2e-test (push) Has been skipped

- Implement a check to register the runner if the .runner file does not exist
- Ensure the runner is properly configured with instance URL, token, name, and labels

This enhancement streamlines the setup process for Gitea act runners.
This commit is contained in:
Damir Mukimov 2025-12-24 22:58:59 +01:00
parent 567745be0a
commit 5d854419e1
No known key found for this signature in database
GPG Key ID: 42996CC7C73BC750

View File

@ -37,6 +37,9 @@ spec:
- | - |
apk add --no-cache nodejs npm || true apk add --no-cache nodejs npm || true
cd /data cd /data
if [ ! -f .runner ]; then
/usr/local/bin/act_runner register --instance "$GITEA_INSTANCE_URL" --token "$GITEA_RUNNER_REGISTRATION_TOKEN" --name "$GITEA_RUNNER_NAME" --labels "$GITEA_RUNNER_LABELS" --no-interactive || true
fi
exec /usr/local/bin/act_runner daemon exec /usr/local/bin/act_runner daemon
env: env:
- name: GITEA_INSTANCE_URL - name: GITEA_INSTANCE_URL