mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
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
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:
parent
567745be0a
commit
5d854419e1
@ -37,6 +37,9 @@ spec:
|
||||
- |
|
||||
apk add --no-cache nodejs npm || true
|
||||
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
|
||||
env:
|
||||
- name: GITEA_INSTANCE_URL
|
||||
|
||||
Loading…
Reference in New Issue
Block a user