Files
loops-helm/scripts/chart-version.sh
T
feedc0de a6ffa46d42
Validate, publish and promote loops chart / publish (push) Failing after 4m8s
Validate, publish and promote loops chart / validate (push) Successful in 1s
Update Loops to security release beta.15
2026-10-26 06:53:10 +01:00

9 lines
344 B
Bash
Executable File

#!/bin/sh
set -eu
# Chart releases follow the upstream Loops application release tag.
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"