fix: update version and appVersion for frigate-mcp and home-assistant charts; enhance update script for github-sha support

This commit is contained in:
sha
2026-06-13 00:53:59 +03:00
parent de2f50e8ee
commit e2c6ba6a36
3 changed files with 14 additions and 6 deletions
+4 -4
View File
@@ -2,8 +2,8 @@ apiVersion: v2
name: frigate-mcp name: frigate-mcp
description: Frigate MCP server Helm chart description: Frigate MCP server Helm chart
type: application type: application
version: 0.1.0 version: 0.1.1
appVersion: "latest" appVersion: "sha-7aff47d"
annotations: annotations:
version-source: github-release:jakekeeys/frigate-mcp version-source: github-sha:jakekeeys/frigate-mcp
version-pattern: "s|^v||" version-pattern: "s|^|sha-|"
+2 -2
View File
@@ -5,5 +5,5 @@ type: application
annotations: annotations:
version-source: github-release:home-assistant/core version-source: github-release:home-assistant/core
version-pattern: "s|^v||" version-pattern: "s|^v||"
version: 0.1.32 version: 0.1.33
appVersion: "2026.6.2" appVersion: "2026.6.3"
+8
View File
@@ -17,6 +17,14 @@ fetch_latest() {
"github-release") "github-release")
version=$(curl -sL "https://api.github.com/repos/$source_data/releases/latest" | jq -r '.tag_name // empty') 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") "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) 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)
;; ;;