add major version tag

This commit is contained in:
davidnewhall2 2020-02-03 00:24:52 -08:00
parent 4aeb5f4fea
commit fcb3459593
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ echo "Annotating Images: ${IMAGES}"
# Build all the Docker tags if the source branch is a release and not a branch.
if [ "v$VERSION" = "$SOURCE_BRANCH" ]; then
TAGS="$VERSION $(echo $VERSION | cut -d. -f1,2)"
TAGS="$VERSION $(echo $VERSION | cut -d. -f1,2) $(echo $VERSION | cut -d. -f1)"
echo $SOURCE_BRANCH | grep -q -- -
if [ "$?" = "1" ]; then