Skip to content

Commit

Permalink
Update travis-build.sh
Browse files Browse the repository at this point in the history
remove safety
  • Loading branch information
siren authored Aug 8, 2017
1 parent 93063c8 commit 3dece06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ fi

if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
docker login -u $DOCKER_USER -p $DOCKER_AUTH
if [[ -n $TRAVIS_TAG ]]; then
echo "Pushing prod image"
if [ "$TRAVIS_TAG" ];then
echo "processing release $TRAVIS_TAG"
docker pull $DOCKER_IMAGE_COMMIT
docker tag $DOCKER_IMAGE_COMMIT $DOCKER_IMAGE_PROD
# remove safety first! docker push $DOCKER_IMAGE_PRODT
docker push $DOCKER_IMAGE_PROD
else
echo "Pushing latest image"
docker push $DOCKER_IMAGE_COMMIT
Expand Down

0 comments on commit 3dece06

Please sign in to comment.