Skip to content

Commit

Permalink
Merge pull request #15 from commercetools/post-demo
Browse files Browse the repository at this point in the history
Post demo
  • Loading branch information
heshamMassoud authored Jan 11, 2019
2 parents ed258c0 + e2afec4 commit 189db73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ cache:
after_success:
- bash <(curl -s https://codecov.io/bash)
- ./gradlew shadowJar --daemon || travis_terminate 1
- ./gradlew dockerPushImage -Dbuild.version=$TRAVIS_COMMIT --daemon || travis_terminate 1
- ./gradlew dockerPushImage -Dbuild.version=$TRAVIS_BRANCH --daemon || travis_terminate 1
- ./docker-push.sh
9 changes: 9 additions & 0 deletions docker-push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [[ $TRAVIS_BRANCH = "master" ]]
then
./gradlew dockerPushImage -Dbuild.version=latest --daemon || travis_terminate 1
fi
if ! [[ -z $TRAVIS_TAG ]]
then
./gradlew dockerPushImage -Dbuild.version=$TRAVIS_TAG --daemon || travis_terminate 1
fi

0 comments on commit 189db73

Please sign in to comment.