Skip to content

Commit

Permalink
Add Docker image tagging for push
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavanki committed May 16, 2021
1 parent bcb48b0 commit 221c65e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ docker build . \
--build-arg "GIT_HASH=${GIT_HASH}" \
--build-arg "VERSION=${VERSION}" \
-t "doppio:${VERSION}"

if [[ ! $VERSION =~ SNAPSHOT$ ]]; then
docker tag "doppio:$VERSION" "bhavanki/doppio:${VERSION}"
echo "Tagged for push:"
echo " docker push bhavanki/doppio:${VERSION}"
fi

0 comments on commit 221c65e

Please sign in to comment.