Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
use common docker publish script
Browse files Browse the repository at this point in the history
Signed-off-by: Erin Schnabel <schnabel@us.ibm.com>
  • Loading branch information
Erin Schnabel committed Sep 6, 2017
1 parent 37c06d3 commit f67bc5c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@ before_install:
script:
- ./gradlew build
after_success:
- echo "TRAVIS_BRANCH='$TRAVIS_BRANCH'" \
;if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "Building and Pushing new image" \
&& docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}" && echo "Login ok" \
&& docker build -t ${DOCKER_REPO}/${DOCKER_IMAGE} ${DOCKER_BUILDDIR} && echo "Build complete" \
&& docker push ${DOCKER_REPO}/${DOCKER_IMAGE} && echo "Push complete"
;else
echo "Not master branch, skipping docker"
;fi
- echo "TRAVIS_BRANCH='$TRAVIS_BRANCH'"
- bash <(curl -s https://raw.githubusercontent.com/gameontext/gameon/master/images/dockerhub.sh)
notifications:
slack:
secure: ymN54lciKX+c+QnvBvMfse8XFrU/1l0/Dg5oPhY3MOgSpwNMHFbsqLNvCE4DXWYf0bU2ilXy1JAjilG7bzY0KWkDiY+eaEa9jN+klyP52GarndPtaZycn2gKTF80yDNlvS+De4nj7t0uUfmt0lQ2HCEZiTsWezI6DY2IOXX6socF3Emk9gZgcAJQeQul8TEpRFSF7w7O04DEiXjiYXehFdLQ+ZHbbfe9wYxb3GqaxtovbZVsuAA5CncUenIblVyvQzBPAIyuaWU0RZzpylkw6IvB9SK6GIaU218zjpoUw7aNthEO1UYThu3AMbf9zM4oY/EPoJS9wC2Qcxuk+M2R+ooSJYhRmwtMwdUzT1OmD10dCWQ93iSWIYi73x/aZ4uwfuCZUXNEbPR04pD7yOa0+mq3onyThdMIMoVkzvzLhAuqz1LK47bUjGrvYa9urY8t0vJ4SF6b0V20u/aGuVSOspELHfisDTkIPX6g/bKM/QNHNEobANhtmoLV7yxO1tKFrZmfGEpGQLcogUf4OclL77d+6R3+oQjPTEFUU9JeFZuO+Op+TYndCeNT1gcPRR5KE7Lybd4GtalLSKxXDeSMjxxRFuJmsI8NC8RVuRlzwVtOCc+bajQqK1ZBNZ8gJtRe3xDeW/BgsBocVeq2/VKhh/Q6EdhMdgQujD/nkFv1Xgc=

0 comments on commit f67bc5c

Please # to comment.