From 9ad9fba6d9e53e0245039cf7ea09851a5bf968b2 Mon Sep 17 00:00:00 2001 From: valentinab25 Date: Wed, 2 Mar 2022 15:54:23 +0200 Subject: [PATCH] Add script to calculate next release --- calculate_next_release.sh | 1 + 1 file changed, 1 insertion(+) create mode 100755 calculate_next_release.sh diff --git a/calculate_next_release.sh b/calculate_next_release.sh new file mode 100755 index 0000000..81caa17 --- /dev/null +++ b/calculate_next_release.sh @@ -0,0 +1 @@ +major=$(grep 'FROM .*:.*' Dockerfile | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+');let minor=$(git tag | grep -E $major-[0-9]+ | cut -d- -f2 | sort -n | tail -n 1 )+1; echo $major-$minor