Files
oldipmi/scripts/chart-version.sh
T
feedc0de e757978a1a
Validate, publish and promote Helm chart / Validate chart (push) Successful in 21s
Validate, publish and promote Helm chart / Publish and promote chart (push) Successful in 2s
Package isolated legacy IPMI browser with Podman runtime verification
2026-10-30 21:18:05 +01:00

8 lines
355 B
Bash
Executable File

#!/bin/sh
set -eu
# Upstream publishes only "latest". Preserve that exact Git tag and map it
# reversibly to SemVer 0.0.0-latest-<count>-g<hash>, including the first commit.
description=$(git describe --tags --long --match latest --dirty)
case "$description" in *-dirty) echo 'Refusing dirty package' >&2; exit 1;; esac
printf '0.0.0-%s\n' "$description"