From b430fcfa519667e177825fa226bd81de023c73af Mon Sep 17 00:00:00 2001 From: Dinesh Israni Date: Thu, 5 Jul 2018 18:40:26 -0700 Subject: [PATCH] Update travis to push image for all branches (#110) --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8e3a7e971d..2c852688f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,16 @@ before_install: - sudo apt-get update -yq - sudo apt-get install go-md2man -y script: - - make && make pretest && make test && make container && make integration-test && make integration-test-container && - if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then + - | + if [ "${TRAVIS_BRANCH}" == "master" ]; then + export DOCKER_HUB_STORK_TAG=master + export DOCKER_HUB_STORK_TEST_TAG=latest + else + export DOCKER_HUB_STORK_TAG=`git rev-parse --short HEAD` + export DOCKER_HUB_STORK_TEST_TAG=`git rev-parse --short HEAD` + fi + make && make pretest && make test && make container && make integration-test && make integration-test-container && + if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}"; make deploy; make integration-test-deploy;