1
0
mirror of https://github.com/fspc/workstand.git synced 2025-04-04 10:03:22 -04:00

Better branch checking.

This commit is contained in:
Drew Larson 2017-06-28 21:14:48 -06:00
parent 6c93c52be0
commit 7a74b59a4f

View File

@ -7,7 +7,9 @@ branches:
only:
- master
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 push bcbc/workstand:production;
fi