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 registryAuthSecret and custom CA bundles via registryCASecret.

Values (overview)

KeyTypeDefaultDescription
controllers.main.containers.runner.image.repositorystringgitea/act_runnerRunner image repository
controllers.main.containers.runner.image.tagstring0.2.13Runner image tag
controllers.main.containers.dind.enabledbooltrueEnable Docker-in-Docker sidecar
runner.instanceURLstring""Gitea instance URL
runner.registrationTokenSecretstring""Secret name holding registration token
runner.registrationTokenKeystringREGISTRATION_TOKENKey in the secret for the token
registryAuthSecretstring""Secret with .dockerconfigjson for registry auth
registryCASecretstring""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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgitea-runner is pinned at v0.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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