From f7ba62fe7c54112383ba43e5a9d665ef1e766641 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Tue, 14 Jun 2022 12:04:21 +0700 Subject: [PATCH] Fix main build (#2065) Signed-off-by: Andrey Sobolev --- common/scripts/docker_tag.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/scripts/docker_tag.sh b/common/scripts/docker_tag.sh index ec0574be47..40e57d1207 100755 --- a/common/scripts/docker_tag.sh +++ b/common/scripts/docker_tag.sh @@ -5,8 +5,9 @@ version=$(git describe --tags --abbrev=0) if [ "x$2" = "xstaging" ] then a=( ${version//./ } ) - ((a[2]++)) - version="${a[0]}.${a[1]}.${a[2]}-staging" + c=( ${a[2]//[^0-9]*/ } ) + ((c++)) + version="${a[0]}.${a[1]}.${c}-staging" echo "Tagging stating $1 with version ${version}" docker tag "$1" "$1:$version" docker push "$1:$version"