From f67bc5c9a80299850ad825d27ec20687e930387d Mon Sep 17 00:00:00 2001 From: Erin Schnabel Date: Wed, 6 Sep 2017 00:08:14 -0400 Subject: [PATCH] use common docker publish script Signed-off-by: Erin Schnabel --- .travis.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 36969c6..00376e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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=