From bf6cf818c40af9c9a3c1d4bf5071aa88484fe319 Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Sat, 13 Sep 2025 12:43:36 +0200 Subject: [PATCH] fix: renovate token (#7) --- .github/workflows/renovate.yml | 4 ++-- charts/apps/install.sh | 12 ++++++++++++ charts/apps/jellyfin/templates/config-pvc.yaml | 8 ++++---- charts/apps/values.yaml | 0 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100755 charts/apps/install.sh delete mode 100644 charts/apps/values.yaml diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml index 8ee1a3a..866a091 100644 --- a/.github/workflows/renovate.yml +++ b/.github/workflows/renovate.yml @@ -2,7 +2,7 @@ name: Renovate on: workflow_dispatch: schedule: - - cron: '0 */6 * * *' + - cron: "0 */6 * * *" jobs: renovate: runs-on: ubuntu-latest @@ -12,4 +12,4 @@ jobs: - name: Self-hosted Renovate uses: renovatebot/github-action@v40.2.2 with: - token: ${{ secrets.RENOVATE_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/charts/apps/install.sh b/charts/apps/install.sh new file mode 100755 index 0000000..3c72038 --- /dev/null +++ b/charts/apps/install.sh @@ -0,0 +1,12 @@ +set -euo pipefail + +find . -name "values.yaml" -type f -print0 | while IFS= read -r -d '' values_file; do + location=$(dirname "$values_file") + name=$(basename "$location") + name=$(echo "$name" | tr '[:upper:]' '[:lower:]' | tr -s '[:punct:][:space:]' '-' | sed -e 's/^-*//' -e 's/-*$//') + + echo "✅ Chart found in: $location" + echo " - Generated release name: $name" + HELM_COMMAND="helm install --namespace prod \"$name\" \"$location\"" + helm upgrade -i --namespace prod "$name" "$location" +done diff --git a/charts/apps/jellyfin/templates/config-pvc.yaml b/charts/apps/jellyfin/templates/config-pvc.yaml index d52ab25..8cbd0b4 100644 --- a/charts/apps/jellyfin/templates/config-pvc.yaml +++ b/charts/apps/jellyfin/templates/config-pvc.yaml @@ -1,11 +1,11 @@ kind: PersistentVolumeClaim apiVersion: v1 metadata: - name: '{{ .Release.Name }}-config' + name: "{{ .Release.Name }}-config" spec: accessModes: - - 'ReadWriteOnce' + - "ReadWriteOnce" resources: requests: - storage: '1Gi' - storageClassName: '{{ .Values.environment }}' + storage: "1Gi" + storageClassName: "{{ .Values.globals.environment }}" diff --git a/charts/apps/values.yaml b/charts/apps/values.yaml deleted file mode 100644 index e69de29..0000000