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:
parent
6c93c52be0
commit
7a74b59a4f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user