5 # .dockerignore is created on demand so that release.sh and other scripts are
6 # not influenced by our travis setup.
7 echo .git > .dockerignore
9 docker build --pull --no-cache --rm -t=${BASENAME} -f travis-build.Dockerfile .
10 # For pull requests, travis does not add secure environment variables to the
11 # environment (because pull requests could then steal their values), so skip
12 # the login+push step when the variable isn’t set.
13 if [ -n "${DOCKER_PASS}" ]
15 docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASS}
16 docker push ${BASENAME}