Browse Source

Better branch checking.

master
Drew Larson 8 years ago
parent
commit
7a74b59a4f
  1. 4
      .travis.yml

4
.travis.yml

@ -7,7 +7,9 @@ branches:
only: only:
- master - master
after_success: after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then - BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
- echo $BRANCH
- if [ "$BRANCH" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push bcbc/workstand:production; docker push bcbc/workstand:production;
fi fi

Loading…
Cancel
Save