Compare commits

..

2 Commits

Author SHA1 Message Date
Damir Mukimov
5d854419e1
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.
2025-12-24 22:58:59 +01:00
Damir Mukimov
567745be0a
fix: Install Node.js in Gitea act runner container for GitHub Actions support
- Add Node.js installation in runner startup command
- Use :host labels instead of docker paths (as recommended)
- Add auto-registration check to handle emptyDir volume resets
- Fix working directory to /data for .runner file location

This fixes the 'Cannot find: node in PATH' error when running
GitHub Actions like actions/checkout@v4 and actions/setup-node@v4
2025-12-24 22:58:40 +01:00

View File

@ -31,6 +31,16 @@ spec:
readOnly: true
- name: runner
image: gitea/act_runner:latest
command:
- sh
- -c
- |
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
value: "http://gitea.gitea.svc.cluster.local:3000"