1
0

Change labels & add registry mirror

This commit is contained in:
2024-04-27 07:55:37 -04:00
parent 6c337a96c3
commit 6ddc855c6b
4 changed files with 24 additions and 42 deletions

View File

@@ -1,5 +1,5 @@
apiVersion: v2
name: act-runner
type: application
version: 1.2.0
version: 1.3.0
appVersion: "0.2.10"

View File

@@ -50,7 +50,7 @@ spec:
- name: GITEA_RUNNER_LABELS
value: {{ join "," .Values.act_runner.labels }}
volumeMounts:
- name: {{ include "act_runner.fullname" . }}-docker-data
- name: docker-data
mountPath: /shared
- name: {{ include "act_runner.fullname" . }}-pvc
mountPath: /data
@@ -64,13 +64,14 @@ spec:
value: "overlay2"
- name: DOCKER_TLS_CERTDIR
value: ""
- name: DOCKER_REGISTRY_MIRROR
value: {{ .Values.act_runner.registryMirror }}
volumeMounts:
- name: {{ include "act_runner.fullname" . }}-docker-data
- name: docker-data
mountPath: /shared
volumes:
- name: {{ include "act_runner.fullname" . }}-docker-data
persistentVolumeClaim:
claimName: {{ include "act_runner.fullname" . }}-shared-pvc
- name: docker-data
emptyDir: { }
- name: {{ include "act_runner.fullname" . }}-pvc
persistentVolumeClaim:
claimName: {{ include "act_runner.fullname" . }}-pvc

View File

@@ -16,21 +16,3 @@ spec:
requests:
storage: "1024Mi"
storageClassName: {{ .Values.act_runner.storageclass }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "act_runner.fullname" . }}-shared-pvc
labels:
{{- include "act_runner.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: {{ .Values.act_runner.sharedStorageSize }}
storageClassName: {{ .Values.act_runner.sharedStorageClass }}

View File

@@ -63,13 +63,12 @@ affinity: {}
act_runner:
storageclass: "default"
sharedStorageSize: "50G"
sharedStorageClass: "default"
registryMirror: ""
instance: "https://gitea.example.com"
token: ""
labels:
- "ubuntu-latest:docker://node:16-bullseye"
- "ubuntu-22.04:docker://node:16-bullseye"
- "ubuntu-20.04:docker://node:16-bullseye"
- "ubuntu-18.04:docker://node:16-buster"
- "ubuntu-latest:docker://catthehacker/ubuntu:act-latest"
- "ubuntu-22.04:docker://catthehacker/ubuntu:act-22.04"
- "ubuntu-20.04:docker://catthehacker/ubuntu:act-20.04"
- "ubuntu-18.04:docker://catthehacker/ubuntu:act-20.04"