Skip to content

Commit

Permalink
docker image should be only built in master
Browse files Browse the repository at this point in the history
  • Loading branch information
tillias committed Oct 4, 2020
1 parent dd4d158 commit 903c75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 903c75d

Please sign in to comment.