mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 03:27:08 +00:00
fix: update version and appVersion for frigate-mcp and home-assistant charts; enhance update script for github-sha support
This commit is contained in:
@@ -2,8 +2,8 @@ apiVersion: v2
|
||||
name: frigate-mcp
|
||||
description: Frigate MCP server Helm chart
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "latest"
|
||||
version: 0.1.1
|
||||
appVersion: "sha-7aff47d"
|
||||
annotations:
|
||||
version-source: github-release:jakekeeys/frigate-mcp
|
||||
version-pattern: "s|^v||"
|
||||
version-source: github-sha:jakekeeys/frigate-mcp
|
||||
version-pattern: "s|^|sha-|"
|
||||
|
||||
@@ -5,5 +5,5 @@ type: application
|
||||
annotations:
|
||||
version-source: github-release:home-assistant/core
|
||||
version-pattern: "s|^v||"
|
||||
version: 0.1.32
|
||||
appVersion: "2026.6.2"
|
||||
version: 0.1.33
|
||||
appVersion: "2026.6.3"
|
||||
|
||||
@@ -17,6 +17,14 @@ fetch_latest() {
|
||||
"github-release")
|
||||
version=$(curl -sL "https://api.github.com/repos/$source_data/releases/latest" | jq -r '.tag_name // empty')
|
||||
;;
|
||||
"github-sha")
|
||||
local repo="${source_data%%:*}"
|
||||
local branch="${source_data#*:}"
|
||||
if [ "$branch" = "$source_data" ]; then
|
||||
branch=$(curl -sL "https://api.github.com/repos/$repo" | jq -r '.default_branch // "main"')
|
||||
fi
|
||||
version=$(curl -sL "https://api.github.com/repos/$repo/commits/$branch" | jq -r '.sha // empty' | cut -c1-7)
|
||||
;;
|
||||
"dockerhub-tags")
|
||||
version=$(curl -s "https://registry.hub.docker.com/v2/repositories/$source_data/tags?page_size=100" | jq -r '.results[].name' | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V -r | head -1)
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user