Files
coturn-kubernetes/scripts/chart-version.sh
T
feedc0de ef4175a8d2
Publish and promote Helm chart / chart (push) Failing after 18s
Own and promote the coturn Helm chart
2026-10-18 17:33:22 +02:00

8 lines
274 B
Bash
Executable File

#!/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}
case "$version" in *-0-g*) version=${version%%-0-g*};; esac
printf '%s\n' "$version"