services:
  - docker
script:
  - docker build -t exegete46/jekyll-base .
after_success:
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push exegete46/jekyll-base;
    fi
services:
  - docker
script:
  - docker build -t exegete46/jekyll-base .
  - echo "$TRAVIS_BRANCH"
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push exegete46/jekyll-base;
    fi
Make the push a requisate part of the build.
Make the push a requisate part of the build.
