Ported chart changes from edfbuilder/kind/charts/forgejo-runner to this base repo
All checks were successful
Test runners / test-runner (push) Successful in 2s
All checks were successful
Test runners / test-runner (push) Successful in 2s
This commit is contained in:
parent
16ac9cb908
commit
c00805391e
3 changed files with 13 additions and 5 deletions
|
@ -36,7 +36,7 @@ spec:
|
|||
initContainers:
|
||||
- name: runner-register
|
||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||
command: ["forgejo-runner", "register", "--no-interactive", "--token", $(RUNNER_SECRET), "--name", $(RUNNER_NAME), "--instance", $(FORGEJO_INSTANCE_URL)]
|
||||
command: ["forgejo-runner", "register", "--no-interactive", "--token", $(RUNNER_SECRET), "--name", $(RUNNER_NAME), "--instance", $(FORGEJO_INSTANCE_URL), "--labels", $(RUNNER_LABELS)]
|
||||
env:
|
||||
- name: RUNNER_NAME
|
||||
valueFrom:
|
||||
|
@ -49,6 +49,8 @@ spec:
|
|||
key: token
|
||||
- name: FORGEJO_INSTANCE_URL
|
||||
value: {{ .Values.forgejoUrl }}
|
||||
- name: RUNNER_LABELS
|
||||
value: {{ join "," .Values.runnerLabels }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
|
|
|
@ -10,7 +10,8 @@ kind: Secret
|
|||
metadata:
|
||||
name: {{ include "forgejo-runner.fullname" . }}-token
|
||||
namespace: {{ .Release.Namespace }}
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
# TODO: RIRE should this be enabled?
|
||||
#metadata:
|
||||
# annotations:
|
||||
# argocd.argoproj.io/sync-options: Prune=false
|
||||
{{- end }}
|
||||
|
|
|
@ -42,4 +42,9 @@ registration:
|
|||
enabled: false
|
||||
token: ""
|
||||
|
||||
forgejoUrl: http://forgejo-http.forgejo.svc.cluster.local:3000
|
||||
forgejoUrl: https://my.forgejo.server
|
||||
|
||||
runnerLabels:
|
||||
- docker:docker://node:20-bullseye
|
||||
- ubuntu-latest:docker://node:20-bullseye
|
||||
|
||||
|
|
Loading…
Reference in a new issue