From dcce839e7ec17e43ade7752b945f6842fa53a81d Mon Sep 17 00:00:00 2001 From: sHa Date: Sat, 11 Apr 2026 13:29:53 +0300 Subject: [PATCH] chore: Bump version for Home Assistant and Jellyfin charts, add failedJobsHistoryLimit to CronJobs --- home-assistant/Chart.yaml | 2 +- home-assistant/templates/backup-cronjob.yaml | 2 ++ home-assistant/templates/pvc-backup-cronjob.yaml | 2 ++ jellyfin/Chart.yaml | 6 +++--- jellyfin/templates/backup-cronjob.yaml | 2 ++ jellyfin/values.yaml | 2 +- scripts/update-charts.sh | 10 ++++++++++ uptime-kuma/Chart.yaml | 2 +- uptime-kuma/templates/backup-cronjob.yaml | 2 ++ 9 files changed, 24 insertions(+), 6 deletions(-) diff --git a/home-assistant/Chart.yaml b/home-assistant/Chart.yaml index e0a3e06..d39b0b7 100644 --- a/home-assistant/Chart.yaml +++ b/home-assistant/Chart.yaml @@ -5,5 +5,5 @@ type: application annotations: version-source: github-release:home-assistant/core version-pattern: "s|^v||" -version: 0.1.18 +version: 0.1.19 appVersion: "2026.4.1" diff --git a/home-assistant/templates/backup-cronjob.yaml b/home-assistant/templates/backup-cronjob.yaml index f809da2..baeece7 100644 --- a/home-assistant/templates/backup-cronjob.yaml +++ b/home-assistant/templates/backup-cronjob.yaml @@ -9,6 +9,8 @@ metadata: labels: {{- include "home-assistant.labels" . | nindent 4 }} spec: + successfulJobsHistoryLimit: 1 + failedJobsHistoryLimit: 1 schedule: {{ .Values.backup.schedule | quote }} jobTemplate: spec: diff --git a/home-assistant/templates/pvc-backup-cronjob.yaml b/home-assistant/templates/pvc-backup-cronjob.yaml index ed3f17a..ded13b7 100644 --- a/home-assistant/templates/pvc-backup-cronjob.yaml +++ b/home-assistant/templates/pvc-backup-cronjob.yaml @@ -9,6 +9,8 @@ metadata: labels: {{- include "home-assistant.labels" . | nindent 4 }} spec: + successfulJobsHistoryLimit: 1 + failedJobsHistoryLimit: 1 schedule: {{ .Values.pvcBackup.schedule | quote }} jobTemplate: spec: diff --git a/jellyfin/Chart.yaml b/jellyfin/Chart.yaml index 2573c33..7154e20 100644 --- a/jellyfin/Chart.yaml +++ b/jellyfin/Chart.yaml @@ -3,7 +3,7 @@ name: jellyfin description: A Helm chart for Jellyfin media server with Postgres support type: application annotations: - version-source: github-release:jellyfin/jellyfin + version-source: ghcr-tags:rogly-net/jellyfin-postgresql:^v[0-9]+\.[0-9]+\.[0-9]+$ version-pattern: "s|^v||" -version: 0.1.16 -appVersion: "10.11.8" +version: 0.1.17 +appVersion: "10.11.6" diff --git a/jellyfin/templates/backup-cronjob.yaml b/jellyfin/templates/backup-cronjob.yaml index e04abb7..447cb79 100644 --- a/jellyfin/templates/backup-cronjob.yaml +++ b/jellyfin/templates/backup-cronjob.yaml @@ -9,6 +9,8 @@ metadata: labels: {{- include "jellyfin.labels" . | nindent 4 }} spec: + successfulJobsHistoryLimit: 1 + failedJobsHistoryLimit: 1 schedule: {{ .Values.backup.schedule | quote }} jobTemplate: spec: diff --git a/jellyfin/values.yaml b/jellyfin/values.yaml index 096d130..53bc95f 100644 --- a/jellyfin/values.yaml +++ b/jellyfin/values.yaml @@ -8,7 +8,7 @@ image: repository: ghcr.io/rogly-net/jellyfin-postgresql pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "10.11.8" + tag: "v10.11.6" nameOverride: "" fullnameOverride: "" diff --git a/scripts/update-charts.sh b/scripts/update-charts.sh index 22a904f..396d127 100755 --- a/scripts/update-charts.sh +++ b/scripts/update-charts.sh @@ -30,6 +30,16 @@ fetch_latest() { local pattern="${source_data#*:}" version=$(curl -s "https://registry.hub.docker.com/v2/repositories/$repo/tags?page_size=100" | jq -r '.results[].name' | grep -E "$pattern" | head -1) ;; + "ghcr-tags") + local repo="${source_data%%:*}" + local pattern="${source_data#*:}" + [ "$pattern" = "$source_data" ] && pattern='^v?[0-9]+\.[0-9]+\.[0-9]+$' + local token + token=$(curl -s "https://ghcr.io/token?scope=repository:${repo}:pull" | jq -r '.token // empty') + if [ -n "$token" ]; then + version=$(curl -s -H "Authorization: Bearer $token" "https://ghcr.io/v2/${repo}/tags/list" | jq -r '.tags[]' | grep -E "$pattern" | sort -V -r | head -1) + fi + ;; *) return 1 ;; diff --git a/uptime-kuma/Chart.yaml b/uptime-kuma/Chart.yaml index 24ef494..7bfafcf 100644 --- a/uptime-kuma/Chart.yaml +++ b/uptime-kuma/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: uptime-kuma description: Uptime Kuma Helm chart type: application -version: 0.1.3 +version: 0.1.4 appVersion: "2.2.1" annotations: version-source: github-release:louislam/uptime-kuma diff --git a/uptime-kuma/templates/backup-cronjob.yaml b/uptime-kuma/templates/backup-cronjob.yaml index 9cd1693..be6c402 100644 --- a/uptime-kuma/templates/backup-cronjob.yaml +++ b/uptime-kuma/templates/backup-cronjob.yaml @@ -4,6 +4,8 @@ kind: CronJob metadata: name: {{ .Release.Name }}-backup spec: + successfulJobsHistoryLimit: 1 + failedJobsHistoryLimit: 1 schedule: {{ .Values.backup.schedule | quote }} jobTemplate: spec: