fix(forgejo-runner): use emptryDir for cache
This commit is contained in:
parent
cd10b7e582
commit
8e4e6de638
4 changed files with 12 additions and 3 deletions
|
@ -2,6 +2,6 @@ apiVersion: v2
|
||||||
name: forgejo-runner
|
name: forgejo-runner
|
||||||
description: Deploy runner for an forgejo instance (default codeberg.org)
|
description: Deploy runner for an forgejo instance (default codeberg.org)
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.1
|
version: 0.1.2
|
||||||
|
|
||||||
appVersion: "3.2.0"
|
appVersion: "3.2.0"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
= forgejo-runner
|
= forgejo-runner
|
||||||
|
|
||||||
image::https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square[Version: 0.1.1]
|
image::https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square[Version: 0.1.2]
|
||||||
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
||||||
image::https://img.shields.io/badge/AppVersion-3.2.0-informational?style=flat-square[AppVersion: 3.2.0]
|
image::https://img.shields.io/badge/AppVersion-3.2.0-informational?style=flat-square[AppVersion: 3.2.0]
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,8 @@ spec:
|
||||||
mountPath: /certs
|
mountPath: /certs
|
||||||
- name: runner-data
|
- name: runner-data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
- name: runner-cache
|
||||||
|
mountPath: /data/.cache
|
||||||
- name: dind
|
- name: dind
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
|
@ -70,6 +72,8 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker-certs
|
- name: docker-certs
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
- name: runner-cache
|
||||||
|
emptyDir: {}
|
||||||
- name: runner-data
|
- name: runner-data
|
||||||
secret:
|
secret:
|
||||||
secretName: {{ .Values.runner.config.existingSecret | default (print ( include "forgejo-runner.fullname" . ) "-config") | quote }}
|
secretName: {{ .Values.runner.config.existingSecret | default (print ( include "forgejo-runner.fullname" . ) "-config") | quote }}
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#/bin/sh
|
#/bin/sh
|
||||||
|
|
||||||
HELM_REPO=${HELM_REPO:-oci://codeberg.org/wrenix/helm-charts}
|
HELM_REPO=${HELM_REPO:-oci://codeberg.org/wrenix/helm-charts}
|
||||||
|
COMMIT_SCOPE=${2:-fix}
|
||||||
|
COMMIT_MESSAGE=${1:-"update appVersion"}
|
||||||
|
|
||||||
|
|
||||||
helm-docs -t ./README.adoc.gotmpl -t _docs.gotmpl -o README.adoc
|
helm-docs -t ./README.adoc.gotmpl -t _docs.gotmpl -o README.adoc
|
||||||
|
|
||||||
|
@ -63,8 +66,10 @@ for p in * ; do
|
||||||
helm package "${p}"
|
helm package "${p}"
|
||||||
helm push "${p}-${v}.tgz" "${HELM_REPO}";
|
helm push "${p}-${v}.tgz" "${HELM_REPO}";
|
||||||
|
|
||||||
|
git add "${p}/"
|
||||||
|
git commit -m "${COMMIT_SCOPE}(${p}): ${COMMIT_MESSAGE}"
|
||||||
git tag "${tag}" --no-sign;
|
git tag "${tag}" --no-sign;
|
||||||
git push --tags;
|
git push --tags origin main;
|
||||||
|
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue