From 7dc6bdb919254211b5d6fd65e812c6df2d78f9cb Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Sun, 7 Jul 2019 16:44:46 -0700 Subject: [PATCH] do not build release from branches. --- core/poller/init/docker/hooks/push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/poller/init/docker/hooks/push b/core/poller/init/docker/hooks/push index c1aa530d..47a4afe2 100755 --- a/core/poller/init/docker/hooks/push +++ b/core/poller/init/docker/hooks/push @@ -21,7 +21,7 @@ done echo "Annotating Images: ${IMAGES}" # Build all the Docker tags if the github branch is a release and not master. -[ "$SOURCE_BRANCH" == "master" ] || TAGS="latest $VERSION $SHORTVER stable" +[ "v$VERSION" != "$SOURCE_BRANCH" ] || TAGS="latest $VERSION $SHORTVER stable" echo "Version: $VERSION, Source: $SOURCE_BRANCH, Building tags: ${TAGS}" # Create multi-architecture manifests for each tag with all the built images.