sudo: required
services:
- docker
language: bash
script:
# build image
- ./build.sh
# test image
- ./test.sh
# push image
- >
  if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
    docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
    ./deploy.sh
  fi

sudo: required
services:
- docker
language: bash
script:
# build image
- ./build.sh
# test image
- ./test.sh
# push image
- >
  if [ !z "$TRAVIS_TAG" ]; then
    docker login -u="$DOCKER_USER" -p="$DOCKER_PASS"
    ./deploy.sh
  fi

Deploy only on tag builds
Deploy only on tag builds

Signed-off-by: Stefan Scherer <2fe843265e65a9540d5df64f4bed2ee6b7ca283e@icloud.com>
