]> git.sur5r.net Git - i3/i3/blobdiff - travis/docker-build-and-push.sh
travis: check spelling of binaries and manpages, use docker
[i3/i3] / travis / docker-build-and-push.sh
diff --git a/travis/docker-build-and-push.sh b/travis/docker-build-and-push.sh
new file mode 100755 (executable)
index 0000000..7dfd339
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+# .dockerignore is created on demand so that release.sh and other scripts are
+# not influenced by our travis setup.
+echo .git > .dockerignore
+
+docker build --pull --no-cache --rm -t=${BASENAME} -f travis-build.Dockerfile .
+docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASS}
+docker push ${BASENAME}