chore: remove support for docker-latest-* tag from cut.sh
This commit is contained in:
parent
7bdefd065f
commit
659647955a
|
@ -32,9 +32,6 @@ options:
|
||||||
--prev-tag <tag>: Provide the prev tag to automatically generate changelogs
|
--prev-tag <tag>: Provide the prev tag to automatically generate changelogs
|
||||||
If this option is absent, the tag found by git describe will be used
|
If this option is absent, the tag found by git describe will be used
|
||||||
|
|
||||||
--docker-latest: Set this option to assign :latest tag on the corresponding docker image
|
|
||||||
in addition to regular :<version> one
|
|
||||||
|
|
||||||
|
|
||||||
For 5.1 series the current working branch must be 'release-51'
|
For 5.1 series the current working branch must be 'release-51'
|
||||||
--.--[ master ]---------------------------.-----------.---
|
--.--[ master ]---------------------------.-----------.---
|
||||||
|
@ -61,21 +58,18 @@ logmsg() {
|
||||||
}
|
}
|
||||||
|
|
||||||
TAG="${1:-}"
|
TAG="${1:-}"
|
||||||
DOCKER_LATEST_TAG=
|
|
||||||
|
|
||||||
case "$TAG" in
|
case "$TAG" in
|
||||||
v*)
|
v*)
|
||||||
TAG_PREFIX='v'
|
TAG_PREFIX='v'
|
||||||
PROFILE='emqx'
|
PROFILE='emqx'
|
||||||
SKIP_APPUP='yes'
|
SKIP_APPUP='yes'
|
||||||
DOCKER_LATEST_TAG='docker-latest-ce'
|
|
||||||
;;
|
;;
|
||||||
e*)
|
e*)
|
||||||
TAG_PREFIX='e'
|
TAG_PREFIX='e'
|
||||||
PROFILE='emqx-enterprise'
|
PROFILE='emqx-enterprise'
|
||||||
#TODO change to no when we are ready to support hot-upgrade
|
#TODO change to no when we are ready to support hot-upgrade
|
||||||
SKIP_APPUP='yes'
|
SKIP_APPUP='yes'
|
||||||
DOCKER_LATEST_TAG='docker-latest-ee'
|
|
||||||
;;
|
;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
usage
|
usage
|
||||||
|
@ -91,7 +85,6 @@ esac
|
||||||
shift 1
|
shift 1
|
||||||
|
|
||||||
DRYRUN='no'
|
DRYRUN='no'
|
||||||
DOCKER_LATEST='no'
|
|
||||||
while [ "$#" -gt 0 ]; do
|
while [ "$#" -gt 0 ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-h|--help)
|
-h|--help)
|
||||||
|
@ -119,10 +112,6 @@ while [ "$#" -gt 0 ]; do
|
||||||
PREV_TAG="$1"
|
PREV_TAG="$1"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--docker-latest)
|
|
||||||
DOCKER_LATEST='yes'
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
logerr "Unknown option $1"
|
logerr "Unknown option $1"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -266,9 +255,6 @@ generate_changelog () {
|
||||||
|
|
||||||
if [ "$DRYRUN" = 'yes' ]; then
|
if [ "$DRYRUN" = 'yes' ]; then
|
||||||
logmsg "Release tag is ready to be created with command: git tag $TAG"
|
logmsg "Release tag is ready to be created with command: git tag $TAG"
|
||||||
if [ "$DOCKER_LATEST" = 'yes' ]; then
|
|
||||||
logmsg "Docker latest tag is ready to be created with command: git tag --force $DOCKER_LATEST_TAG"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
case "$TAG" in
|
case "$TAG" in
|
||||||
*rc*)
|
*rc*)
|
||||||
|
@ -286,14 +272,6 @@ else
|
||||||
esac
|
esac
|
||||||
git tag "$TAG"
|
git tag "$TAG"
|
||||||
logmsg "$TAG is created OK."
|
logmsg "$TAG is created OK."
|
||||||
if [ "$DOCKER_LATEST" = 'yes' ]; then
|
logwarn "Don't forget to push the tag!"
|
||||||
git tag --force "$DOCKER_LATEST_TAG"
|
echo "git push origin $TAG"
|
||||||
logmsg "$DOCKER_LATEST_TAG is created OK."
|
|
||||||
fi
|
|
||||||
logwarn "Don't forget to push the tags!"
|
|
||||||
if [ "$DOCKER_LATEST" = 'yes' ]; then
|
|
||||||
echo "git push --atomic --force origin $TAG $DOCKER_LATEST_TAG"
|
|
||||||
else
|
|
||||||
echo "git push origin $TAG"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue