Fix syntax error with traditional if-clause instead of escaping bracket

This commit is contained in:
NLKNguyen 2016-09-08 21:41:06 -07:00
parent 47201822f9
commit a5d5831a2e
1 changed files with 4 additions and 3 deletions

View File

@ -16,5 +16,6 @@ script:
after_success:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- [ "$TRAVIS_BRANCH" == "master" ] && docker push $DOCKER_REPO:$TAG
# Only push to Docker Hub if this is the master branch
- if [ "$TRAVIS_BRANCH" == "master" ]; then \
docker push $DOCKER_REPO:$TAG \
fi