init
This commit is contained in:
54
runner.yaml
Normal file
54
runner.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
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
|
||||
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"
|
||||
|
||||
volumeMounts:
|
||||
- name: runner-data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: runner-data
|
||||
emptyDir: {}
|
||||
Reference in New Issue
Block a user