Skip to content

Commit

Permalink
dont stop prod tags on beta releases
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Dec 20, 2020
1 parent 50dfd19 commit d5dbdb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init/docker/hooks/push
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ for build in $BUILDS; do
done
echo "Annotating Images: ${IMAGES}"

# Build all the Docker tags if the source branch is a release and not a branch.
# Build all the Docker tags if the source branch is a release and not a branch or pre-release.
if [ "v$VERSION" = "$SOURCE_BRANCH" ]; then
TAGS="$VERSION $(echo $VERSION | cut -d. -f1,2) $(echo $VERSION | cut -d. -f1)"
TAGS="$VERSION"

echo $SOURCE_BRANCH | grep -q -- -
if [ "$?" = "1" ]; then
# tag does not contain a dash, so assume it's a prod tag.
TAGS="$TAGS latest stable"
TAGS="$TAGS latest stable $(echo $VERSION | cut -d. -f1,2) $(echo $VERSION | cut -d. -f1)"
fi
fi

Expand Down

0 comments on commit d5dbdb8

Please sign in to comment.