From 30ce5030628c36e5f3db32f875d9cb5f2a571702 Mon Sep 17 00:00:00 2001 From: James Blair Date: Sun, 24 Dec 2023 21:07:54 +1300 Subject: [PATCH] Start adding actions runner to gitea helm chart. --- gitea/templates/deployment.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 gitea/templates/deployment.yaml diff --git a/gitea/templates/deployment.yaml b/gitea/templates/deployment.yaml new file mode 100644 index 0000000..3e8ca27 --- /dev/null +++ b/gitea/templates/deployment.yaml @@ -0,0 +1,29 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "gitea.fullname" . }}-runner + namespace: {{ .Release.Namespace }} +spec: + replicas: 1 + selector: + matchLabels: + app: gitea-runner + template: + metadata: + labels: + app: gitea-runner + annotations: + checksum/secret: {{ tpl (toYaml .Values.runner.runnerToken.value) . | sha256sum }} + spec: + containers: + - image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + env: + - name: GITEA_INSTANCE_URL + value: {{ .Values.runner.instanceURL }} + - name: GITEA_RUNNER_REGISTRATION_TOKEN + valueFrom: + secretKeyRef: + name: {{ include "gitea.fullname" . }}-secrets + key: token