# ConfigMap containing the runner configuration (config.yaml file). # This file is mounted in the pod and passed to the runner via --config. apiVersion: v1 kind: ConfigMap metadata: name: forgejo-runner-config namespace: forgejo data: config.yaml: | log: level: info runner: file: /data/.runner # Number of parallel jobs capacity: 2 # Labels exposed to Forgejo for workflows to target the runner. # Here "k8s" corresponds to `runs-on: k8s` in workflows. # # The job container needs /bin/sh and /bin/sleep (act_runner requirement). # Kaniko is invoked as a step image (uses: docker://) — not as the job container. labels: - "k8s:docker://node:20-bookworm" container: # Bind-mount the registry credentials (config.json) that were injected into # the DinD sidecar into every job container. # Kaniko looks for credentials in /kaniko/.docker by default options: "-v /run/secrets/docker:/kaniko/.docker:ro" # act_runner only allows mounting paths listed here. valid_volumes: - /run/secrets/docker # The action cache allow reuse of artifacts between jobs # Disabled for now cache: enabled: false host: workdir: /tmp