Просмотр исходного кода

chore: add a reminder to push the tags

Ivan Dyachkov 2 лет назад
Родитель
Сommit
6be9967d2d
2 измененных файлов с 12 добавлено и 0 удалено
  1. 11 0
      scripts/rel/cut.sh
  2. 1 0
      scripts/rel/sync-remotes.sh

+ 11 - 0
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

+ 1 - 0
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)"
 }