Version chart releases from Git tags
Validate, publish and promote Helm chart / Publish and promote chart (push) Successful in 20s
Validate, publish and promote Helm chart / Validate chart (push) Successful in 22s

This commit is contained in:
2026-10-18 17:27:23 +02:00
parent f644d323e3
commit fc0981b4ac
2 changed files with 23 additions and 10 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
description=$(git describe --tags --long --match 'v[0-9]*' --dirty)
case "$description" in
*-dirty) echo "refusing to package a dirty tree" >&2; exit 1 ;;
esac
version=${description#v}
case "$version" in
*-0-g*) version=${version%%-0-g*} ;;
esac
printf '%s\n' "$version"