From 6be9967d2dd921ad5ec348f0b1f00a4c99dea7cf Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Wed, 1 Mar 2023 17:28:52 +0100 Subject: [PATCH] chore: add a reminder to push the tags --- scripts/rel/cut.sh | 11 +++++++++++ scripts/rel/sync-remotes.sh | 1 + 2 files changed, 12 insertions(+) diff --git a/scripts/rel/cut.sh b/scripts/rel/cut.sh index ab63d46fe..2a1c213fe 100755 --- a/scripts/rel/cut.sh +++ b/scripts/rel/cut.sh @@ -48,6 +48,11 @@ EOF logerr() { echo "$(tput setaf 1)ERROR: $1$(tput sgr0)" } + +logwarn() { + echo "$(tput setaf 3)WARNING: $1$(tput sgr0)" +} + logmsg() { echo "INFO: $1" } @@ -275,4 +280,10 @@ else git tag --force "$DOCKER_LATEST_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 diff --git a/scripts/rel/sync-remotes.sh b/scripts/rel/sync-remotes.sh index 7f7c2885d..eddce0cd7 100755 --- a/scripts/rel/sync-remotes.sh +++ b/scripts/rel/sync-remotes.sh @@ -43,6 +43,7 @@ EOF logerr() { echo "$(tput setaf 1)ERROR: $1$(tput sgr0)" } + logwarn() { echo "$(tput setaf 3)WARNING: $1$(tput sgr0)" }