mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-14 16:17:17 +00:00
Make releasetfw ain't joke no more
This commit is contained in:
parent
18719f5f97
commit
e57ea7b436
11
hack/tfw.sh
11
hack/tfw.sh
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user