Always upgrade test from the previous major release (#207)

This commit is contained in:
kfox1111
2024-01-24 17:02:31 +01:00
committed by GitHub
parent 25558d3410
commit 3e1c5199b7
+5 -1
View File
@@ -2,7 +2,7 @@
set -xe
UPGRADE_VERSION=v0.15.1
UPGRADE_VERSION=$(git ls-remote --tags origin -l 'spire-0.*' | awk -F. '{print $2}' | sort -n | tail -n 1 | sed 's/^/v0./; s/$/.0/')
UPGRADE_REPO=https://spiffe.github.io/helm-charts-hardened
SCRIPT="$(readlink -f "$0")"
@@ -24,6 +24,10 @@ CLEANUP=1
for i in "$@"; do
case $i in
-u)
if [[ -z "$UPGRADE_VERSION" ]]; then
echo "Failed to detect previous version."
exit 1
fi
UPGRADE_ARGS="--repo $UPGRADE_REPO --version $UPGRADE_VERSION"
shift # past argument=value
;;