Skip to content

Commit

Permalink
Update travis to push image for all branches (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
disrani-px committed Jul 6, 2018
1 parent 4bfc18d commit b430fcf
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b430fcf

Please sign in to comment.