From 5b6ceb8feec210b931c6eb0d8e6c68fbf5efc7c8 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. --- integrations/promunifi/init/docker/hooks/push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/promunifi/init/docker/hooks/push b/integrations/promunifi/init/docker/hooks/push index c1aa530d..47a4afe2 100755 --- a/integrations/promunifi/init/docker/hooks/push +++ b/integrations/promunifi/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.