1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 16:37:18 +00:00

Make releasetfw ain't joke no more

This commit is contained in:
Kristóf Tóth 2018-04-16 17:16:16 +02:00
parent 18719f5f97
commit e57ea7b436

View File

@ -39,8 +39,7 @@ release_baseimage()
read -p "Tag and push new TFW version \"${TAG}\"? [y/N]" -r && echo
if [[ $REPLY =~ ^(y|Y|yes|Yes|YES)$ ]]
then
git tag -s -m "$1" "$TAG"
git push origin $TAG
TAG="$TAG" force_push_tag
fi
}
@ -55,6 +54,14 @@ check_drone_releasename()
fi
}
force_push_tag()
{
git tag -d "$TAG" > /dev/null 2>&1 || :
git push --delete origin "$TAG" > /dev/null 2>&1 || :
git tag -s -m "$1" "$TAG"
git push origin "$TAG"
}
baseimage_releasename()
{
VERSION="$(cat VERSION | head -n 1)"