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:
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
|
read -p "Tag and push new TFW version \"${TAG}\"? [y/N]" -r && echo
|
||||||
if [[ $REPLY =~ ^(y|Y|yes|Yes|YES)$ ]]
|
if [[ $REPLY =~ ^(y|Y|yes|Yes|YES)$ ]]
|
||||||
then
|
then
|
||||||
git tag -s -m "$1" "$TAG"
|
TAG="$TAG" force_push_tag
|
||||||
git push origin $TAG
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,6 +54,14 @@ check_drone_releasename()
|
|||||||
fi
|
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()
|
baseimage_releasename()
|
||||||
{
|
{
|
||||||
VERSION="$(cat VERSION | head -n 1)"
|
VERSION="$(cat VERSION | head -n 1)"
|
||||||
|
Loading…
Reference in New Issue
Block a user