Publish Plex chart and replace direct Kubernetes CD
Validate, publish and promote Plex chart / publish (push) Successful in 2s
Validate, publish and promote Plex chart / validate (push) Successful in 1s

This commit is contained in:
2026-10-23 09:48:55 +02:00
parent 4d2bff4fac
commit 1d84fb0bc4
9 changed files with 179 additions and 147 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
description=$(git describe --tags --long --match 'v[0-9]*' --dirty)
case "$description" in *-dirty) echo 'Refusing dirty tree' >&2; exit 1 ;; esac
version=${description#v}
version=$(printf '%s\n' "$version" | sed -E 's/\.([0-9]+-[[:alnum:]]+)(-[0-9]+-g[0-9a-f]+)?$/-\1\2/')
case "$version" in *-0-g*) version=${version%%-0-g*} ;; esac
printf '%s\n' "$version"