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
|
||||
description: Deploy runner for an forgejo instance (default codeberg.org)
|
||||
type: application
|
||||
version: 0.1.1
|
||||
version: 0.1.2
|
||||
|
||||
appVersion: "3.2.0"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
= 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/AppVersion-3.2.0-informational?style=flat-square[AppVersion: 3.2.0]
|
||||
|
||||
|
|
|
@ -51,6 +51,8 @@ spec:
|
|||
mountPath: /certs
|
||||
- name: runner-data
|
||||
mountPath: /data
|
||||
- name: runner-cache
|
||||
mountPath: /data/.cache
|
||||
- name: dind
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
|
@ -70,6 +72,8 @@ spec:
|
|||
volumes:
|
||||
- name: docker-certs
|
||||
emptyDir: {}
|
||||
- name: runner-cache
|
||||
emptyDir: {}
|
||||
- name: runner-data
|
||||
secret:
|
||||
secretName: {{ .Values.runner.config.existingSecret | default (print ( include "forgejo-runner.fullname" . ) "-config") | quote }}
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#/bin/sh
|
||||
|
||||
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
|
||||
|
||||
|
@ -63,8 +66,10 @@ for p in * ; do
|
|||
helm package "${p}"
|
||||
helm push "${p}-${v}.tgz" "${HELM_REPO}";
|
||||
|
||||
git add "${p}/"
|
||||
git commit -m "${COMMIT_SCOPE}(${p}): ${COMMIT_MESSAGE}"
|
||||
git tag "${tag}" --no-sign;
|
||||
git push --tags;
|
||||
git push --tags origin main;
|
||||
|
||||
echo
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue