Update travis to also push latest
@@ -19,6 +19,8 @@ after_success:
echo "preparing pre-release: " $TAG " for target: " $DOCKERTARGET
# execute the Docker build
travis_wait 30 docker build -f "Dockerfile-prod" -t $TAG --target $DOCKERTARGET .
+ # push the release
+ travis_wait 30 docker push $TAG
# do a release
elif [ -n "$TRAVIS_TAG" ]; then
TAG=$DOCKER_ID$TRAVIS_TAG
@@ -27,7 +29,10 @@ after_success:
# validate if the tag is equal to the Weaviate version
if [ "$TRAVIS_TAG" = "$WEAVIATE_VERSION" ]; then
# execute the Docker build
- travis_wait 30 docker build -f "Dockerfile-prod" -t $TAG --target $DOCKERTARGET .
+ travis_wait 30 docker build -f "Dockerfile-prod" -t $TAG -t $DOCKER_ID:latest --target $DOCKERTARGET .
+ # push the release
+ travis_wait 30 docker push $TAG
+ travis_wait 30 docker push $DOCKER_ID:latest
# something is wrong with the tags!
else
echo "The release tag ($TRAVIS_TAG) and Weaviate version ($WEAVIATE_VERSION) are not equal! Can't release."
@@ -38,8 +43,6 @@ after_success:
echo "nothing for Dockerhub"
travis_terminate 0
fi
- # push the release
- travis_wait 30 docker push $TAG
fi
before_script: ~
dist: xenial
