diff --git a/Chart.yaml b/Chart.yaml index 61b9df2..025033c 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 name: act-runner type: application -version: 1.3.0 +version: 1.4.0 appVersion: "0.2.10" diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 4b53da6..75db92d 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -49,6 +49,10 @@ spec: key: act-runner-token - name: GITEA_RUNNER_LABELS value: {{ join "," .Values.act_runner.labels }} + - name: ACT_CACHE_SERVER_ENABLED + value: "true" + - name: ACT_CACHE_SERVER_DIR + value: "/data/cache/server" volumeMounts: - name: docker-data mountPath: /shared @@ -69,12 +73,17 @@ spec: volumeMounts: - name: docker-data mountPath: /shared + - name: {{ include "act_runner.fullname" . }}-shared-pvc + mountPath: "/data/cache/server" volumes: - name: docker-data emptyDir: { } - name: {{ include "act_runner.fullname" . }}-pvc persistentVolumeClaim: claimName: {{ include "act_runner.fullname" . }}-pvc + - name: {{ include "act_runner.fullname" . }}-shared-pvc + persistentVolumeClaim: + claimName: {{ include "act_runner.fullname" . }}-shared-pvc {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/templates/pvc.yaml b/templates/pvc.yaml index 05e7b4b..d00b7e7 100644 --- a/templates/pvc.yaml +++ b/templates/pvc.yaml @@ -15,4 +15,22 @@ spec: resources: requests: storage: "1024Mi" - storageClassName: {{ .Values.act_runner.storageclass }} + 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: + - ReadWriteOnce + resources: + requests: + storage: {{ .Values.act_runner.sharedStorageSize }} + storageClassName: {{ .Values.act_runner.sharedStorageClass }} diff --git a/values.yaml b/values.yaml index 0b49c1b..ed693d4 100644 --- a/values.yaml +++ b/values.yaml @@ -62,7 +62,9 @@ tolerations: [ ] affinity: { } act_runner: - storageclass: "default" + storageClass: "default" + sharedStorageClass: "default" + sharedStorageSize: "50Gi" registryMirror: "" instance: "https://gitea.example.com"