57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: gitea-runner
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: gitea-runner
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: gitea-runner
|
|
|
|
spec:
|
|
|
|
containers:
|
|
- name: runner
|
|
image: gitea/act_runner:latest
|
|
#image: gitea/act_runner:latest-dind-rootless
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: GITEA_INSTANCE_URL
|
|
value: "https://git.stalwart.a1cloud.dev/"
|
|
- name: GITEA_RUNNER_REGISTRATION_TOKEN
|
|
value: "m5lhsDgMCHVxlBJ9FUadv28uPvpaQH3pKzFiFjqD"
|
|
- name: RUNNER_EXECUTOR
|
|
value: "shell"
|
|
- name: RUNNER_LABELS
|
|
value: "shell,buildkit"
|
|
- name: BUILDKIT_HOST
|
|
value: "tcp://buildkitd-service-name.namespace.svc.cluster.local:1234"
|
|
- name: GITEA_RUNNER_LABELS
|
|
#value: "shell:host,buildkit:host"
|
|
value: "shell:host,buildkit:host,ubuntu-latest:host"
|
|
|
|
volumeMounts:
|
|
- name: runner-data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: runner-data
|
|
emptyDir: {}
|