Fix main build (#2065)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2022-06-14 12:04:21 +07:00 committed by GitHub
parent ba7d308d34
commit f7ba62fe7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"