add major version tag
This commit is contained in:
parent
4aeb5f4fea
commit
fcb3459593
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue