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
|
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-|"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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)
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user