Files
mumble-kubernetes/scripts/chart-version.sh
T
feedc0de cc39c5e9c2
Validate, publish and promote Mumble chart / chart (push) Successful in 33s
Validate and deploy Mumble / Deploy to Kubernetes (push) Successful in 21s
Validate and deploy Mumble / Validate manifests (push) Successful in 10s
Add versioned Mumble chart with optional PostgreSQL
2026-10-19 21:44:23 +02:00

8 lines
289 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"