mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 20:13:20 +00:00
Fix main build (#2065)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
ba7d308d34
commit
f7ba62fe7c
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user