Files
feedc0de 1ae6375c11
Publish image, chart, and GitOps promotion / Test and publish immutable artifacts (push) Failing after 14s
Publish and promote the application Helm chart
2026-10-18 17:32:19 +02:00

13 lines
294 B
Bash
Executable File

#!/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"