Add Dockerfile for automatic build in DockerHub (#796)

* Add Dockerfile for automatic build in DockerHub

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Use build hooks to build docker images with SOURCE_BRANCH

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2017-07-27 12:29:17 -07:00
committed by GitHub
parent f5fbfce876
commit 10d354b784
2 changed files with 19 additions and 0 deletions

3
docker/hooks/build Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
set -x
docker build --build-arg COREDNS_VERSION=$SOURCE_BRANCH -t $IMAGE_NAME .