Files
kubernetes-dashboard-deploy…/scripts/chart-version.sh
T
feedc0de 0441ce9d7f
Validate, publish and promote Kubernetes Dashboard chart / publish (push) Successful in 3s
Validate, publish and promote Kubernetes Dashboard chart / validate (push) Successful in 1s
Validate and deploy Kubernetes Dashboard / deploy (push) Successful in 37s
Validate and deploy Kubernetes Dashboard / validate (push) Successful in 18s
Package Dashboard 7.14.0 with Argo-safe CSRF and auth proxy
2026-10-23 14:42:54 +02:00

8 lines
284 B
Bash
Executable File

#!/bin/sh
set -eu
description=$(git describe --tags --long --match 'v[0-9]*' --dirty)
case "$description" in *-dirty) echo 'Refusing a dirty chart tree' >&2; exit 1 ;; esac
version=${description#v}
case "$version" in *-0-g*) version=${version%%-0-g*} ;; esac
printf '%s\n' "$version"