Skip to content

Commit 61cd6e1

Browse files
committed
CBD-4412: Don't tag any version containing a hyphen with latest
Change-Id: Ie2f5e3c9f0d8051001f486e17ab20adfbe215b84 Reviewed-on: http://review.couchbase.org/c/build-tools/+/163589 Reviewed-by: Chris Hillery <[email protected]> Tested-by: Blair Watt <[email protected]>
1 parent 9dd764a commit 61cd6e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

k8s-microservice/jenkins/couchbase-k8s-microservice-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ highest_version=$(
2020

2121
# Compute tag(s) to push
2222
version_build=${VERSION}-${BLD_NUM}
23-
if [ ${highest_version} = ${VERSION} ]; then
23+
if [[ ${highest_version} = ${VERSION} && "${VERSION}" != *"-"* ]]; then
2424
tags="${version_build} latest"
2525
else
2626
tags="${version_build}"

0 commit comments

Comments
 (0)