language: java sudo: required services: - docker script: - mvn package after_success: - docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD - if [ "$TRAVIS_BRANCH" == "master" ]; then docker build -t plantuml/plantuml-server:jetty -f Dockerfile.jetty . ; docker build -t plantuml/plantuml-server:tomcat -f Dockerfile.tomcat . ; docker tag plantuml/plantuml-server:jetty plantuml/plantuml-server:latest ; docker push plantuml/plantuml-server:tomcat; docker push plantuml/plantuml-server:jetty; docker push plantuml/plantuml-server:latest; fi