From 8dbc8265d85f17b8b27e35d013ad261af7777ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenkai=20Yin=28=E5=B0=B9=E6=96=87=E5=BC=80=29?= Date: Mon, 21 Feb 2022 19:47:47 +0800 Subject: [PATCH] Append "-dev" suffix for the image tag of release branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Append "-dev" suffix for the image tag of release branches Signed-off-by: Wenkai Yin(尹文开) --- hack/docker-push.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/docker-push.sh b/hack/docker-push.sh index f768482..739a980 100755 --- a/hack/docker-push.sh +++ b/hack/docker-push.sh @@ -71,6 +71,9 @@ if [[ ! -z "$TAG" ]]; then else echo "We're on branch $BRANCH" VERSION="$BRANCH" + if [[ "$VERSION" == release-* ]]; then + VERSION=${VERSION}-dev + fi fi # Debugging info @@ -78,6 +81,7 @@ echo "Highest tag found: $HIGHEST" echo "BRANCH: $BRANCH" echo "TAG: $TAG" echo "TAG_LATEST: $TAG_LATEST" +echo "VERSION: $VERSION" echo "Building and pushing container images."