gitea-runner
by m0sh1
Helm chartv0.2.3App 0.2.13
Helm chart for Gitea Actions runner with optional Docker-in-Docker
About this chart
Gitea Runner Helm Chart
Helm chart for the Gitea Actions runner with an optional Docker-in-Docker sidecar, using the bjw-s/common library.
Requirements
- Kubernetes >= 1.28
- A Gitea instance with Actions enabled
Notes
- The runner requires a registration token stored in a Secret.
- Docker-in-Docker is enabled by default; disable it by setting
controllers.main.containers.dind.enabled=false. - Provide registry authentication via
registryAuthSecretand custom CA bundles viaregistryCASecret.
Values (overview)
| Key | Type | Default | Description |
|---|---|---|---|
| controllers.main.containers.runner.image.repository | string | gitea/act_runner | Runner image repository |
| controllers.main.containers.runner.image.tag | string | 0.2.13 | Runner image tag |
| controllers.main.containers.dind.enabled | bool | true | Enable Docker-in-Docker sidecar |
| runner.instanceURL | string | "" | Gitea instance URL |
| runner.registrationTokenSecret | string | "" | Secret name holding registration token |
| runner.registrationTokenKey | string | REGISTRATION_TOKEN | Key in the secret for the token |
| registryAuthSecret | string | "" | Secret with .dockerconfigjson for registry auth |
| registryCASecret | string | "" | Secret containing a CA bundle |
For full configuration options, see values.yaml.
Example
runner:
instanceURL: https://gitea.example.com
registrationTokenSecret: gitea-runner-secret
registrationTokenKey: REGISTRATION_TOKEN
name: runner-01
baseLabels: self-hosted
jobLabel: alpine
jobImage: alpine:3.20
registryAuthSecret: gitea-registry-auth
registryAuthMountPath: /root/.docker/config.json
registryCASecret: gitea-registry-ca
registryCAMounts:
- /etc/docker/certs.d/registry.example.com/ca.crt
Deploy gitea-runner with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gitea-runner on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgitea-runner is pinned at v0.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply