Files
homelab/infra/kubernetes/platform/gitea-runner/deployment.yaml
Julia McGhee 14cf33f57f
Some checks are pending
CI / build (push) Blocked by required conditions
CI / changes (push) Successful in 2s
CI / lint-and-test (push) Successful in 27s
Deploy Production / deploy (push) Successful in 24s
Bake pnpm into runner image, fix config loading with --config flag
Pre-install pnpm 9.15.4 via corepack in the image so it doesn't
download every run. Use --config CLI flag instead of CONFIG_FILE
env var to ensure container.options volume mount is applied.
2026-03-21 16:49:14 +00:00

72 lines
2.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-runner
namespace: platform
labels:
app: gitea-runner
spec:
replicas: 1
selector:
matchLabels:
app: gitea-runner
template:
metadata:
labels:
app: gitea-runner
spec:
containers:
- name: runner
image: gitea/act_runner:latest
command: ["act_runner", "daemon", "--config", "/config/config.yaml"]
env:
- name: GITEA_INSTANCE_URL
value: http://gitea-helm-http.platform.svc:3000
- name: GITEA_RUNNER_REGISTRATION_TOKEN
valueFrom:
secretKeyRef:
name: gitea-runner-token
key: token
- name: GITEA_RUNNER_LABELS
value: "ubuntu-latest:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest,linux/amd64:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest,cluster:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest"
- name: DOCKER_HOST
value: tcp://localhost:2375
volumeMounts:
- name: runner-data
mountPath: /data
- name: runner-config
mountPath: /config
readOnly: true
resources:
requests:
memory: 256Mi
cpu: 200m
limits:
memory: 1Gi
- name: dind
image: docker:dind
securityContext:
privileged: true
env:
- name: DOCKER_TLS_CERTDIR
value: ""
volumeMounts:
- name: dind-storage
mountPath: /var/lib/docker
resources:
requests:
memory: 512Mi
cpu: 500m
limits:
memory: 4Gi
volumes:
- name: runner-data
emptyDir: {}
- name: runner-config
configMap:
name: gitea-runner-config
- name: dind-storage
emptyDir: {}