Add tag to build command, so you can do "make tag=x.xx" to add a version number to the image

This commit is contained in:
Bryan Boreham committed 2014-09-15 14:26:13 +01:00
1 parent 39003233ea
commit 244188776f
1 file changed
+6 -1
+6 -1
View File
@@ -9,8 +9,13 @@ weaver: ../*.go main.go
docker-image: /tmp/weave.tar
# override this on the command-line when you are doing a release
# e.g. make tag=0.99
tag=dev
/tmp/weave.tar: Dockerfile weaver
sudo docker build -t zettio/weave .
sudo docker build -t zettio/weave:latest .
sudo docker tag zettio/weave:latest zettio/weave:$(tag)
sudo docker save zettio/weave > /tmp/weave.tar
clean: