message: ci: push unstable docker image to public docker
  Push unstable docker image to public docker, also make sure build is marked as failed if it can't push to docker.
diff: @@ -33,19 +33,20 @@ jobs:
  services:
  - docker
  install: skip
  - script: RELEASE_VERSION=latest ./make-web.sh --build-ml
  - after_success: |
  + script: |
  + RELEASE_VERSION=latest ./make-web.sh --build-ml
  +
  if [ "${TRAVIS_BRANCH}" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
  echo 'Master banch build detected, pushing to docker hub'
  echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
  - docker tag flogo/flogo-web:latest flogo/flogo-web:unstable
  - docker push flogo/flogo-web:unstable
  - docker tag flogo/flogo-web:latest-ml flogo/flogo-web:unstable-ml
  - docker push flogo/flogo-web:unstable-ml
  + docker tag flogo/flogo-web:latest flogo/flogo-docker:unstable
  + docker push flogo/flogo-docker:unstable
  + docker tag flogo/flogo-web:latest-ml flogo/flogo-docker:unstable-ml
  + docker push flogo/flogo-docker:unstable-ml
  fi
  if [ ! -z "$TRAVIS_TAG" ]; then
  echo "Tag detected, pushing tag '${TRAVIS_TAG}' to docker hub"
  - docker tag flogo/flogo-web:latest "flogo/flogo-web:${TRAVIS_TAG}"
  - docker push "flogo/flogo-web:${TRAVIS_TAG}"
  + docker tag flogo/flogo-web:latest "flogo/flogo-docker:${TRAVIS_TAG}"
  + docker push "flogo/flogo-docker:${TRAVIS_TAG}"
  fi
  