do not build release from branches.

This commit is contained in:
David Newhall II 2019-07-07 16:44:46 -07:00
parent 09a2e9dbe4
commit 5b6ceb8fee
1 changed files with 1 additions and 1 deletions

View File

@ -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.