From 8e4e6de6385d4bc517a24c77062700ff44b9d055 Mon Sep 17 00:00:00 2001 From: WrenIX Date: Thu, 21 Dec 2023 00:47:45 +0100 Subject: [PATCH] fix(forgejo-runner): use emptryDir for cache --- forgejo-runner/Chart.yaml | 2 +- forgejo-runner/README.adoc | 2 +- forgejo-runner/templates/deployment.yaml | 4 ++++ publish.sh | 7 ++++++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/forgejo-runner/Chart.yaml b/forgejo-runner/Chart.yaml index f01cb2d..56d8f9b 100644 --- a/forgejo-runner/Chart.yaml +++ b/forgejo-runner/Chart.yaml @@ -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" diff --git a/forgejo-runner/README.adoc b/forgejo-runner/README.adoc index fcd5851..e7136db 100644 --- a/forgejo-runner/README.adoc +++ b/forgejo-runner/README.adoc @@ -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] diff --git a/forgejo-runner/templates/deployment.yaml b/forgejo-runner/templates/deployment.yaml index e9555e5..ccc1022 100644 --- a/forgejo-runner/templates/deployment.yaml +++ b/forgejo-runner/templates/deployment.yaml @@ -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 }} diff --git a/publish.sh b/publish.sh index fcc0018..041c16f 100755 --- a/publish.sh +++ b/publish.sh @@ -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