From 903c75da4c5ee5d3f49d733f70de1f15f58ba152 Mon Sep 17 00:00:00 2001 From: tillias Date: Sun, 4 Oct 2020 09:32:42 +0200 Subject: [PATCH] docker image should be only built in master --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a92ea5e..3151c58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,10 +47,10 @@ script: ./mvnw -ntp clean verify && ./mvnw -ntp com.github.eirslett:frontend-maven-plugin:npm -Dfrontend.npm.arguments='run test' -Dmaven.repo.local=$MAVEN_USER_HOME && ./mvnw -ntp verify -Pprod -DskipTests && + if [ "$BRANCH" = "master" ]; then docker build -t tillias/microcatalog . && echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && docker push tillias/microcatalog && - if [ "$BRANCH" = "master" ]; then ./mvnw -ntp com.heroku.sdk:heroku-maven-plugin:2.0.5:deploy-only -Pheroku -Dheroku.buildpacks=heroku/jvm -Dheroku.appName=microcatalog; fi notifications: