re-instate 'make publish'

and call it from the release script
This commit is contained in:
Matthias Radestock committed 2015-01-08 20:06:00 +00:00
1 parent 89cb1af996
commit b1ca832ed5
2 files changed
+12 -8

No files matched your search

+10 -1
View File
@@ -1,5 +1,7 @@
PUBLISH=publish_weave publish_weavedns publish_weavetools
.DEFAULT: all
.PHONY: all update tests clean
.PHONY: all update tests publish $(PUBLISH) clean
# If you can use docker without being root, you can do "make SUDO="
SUDO=sudo
@@ -55,6 +57,13 @@ $(WEAVETOOLS_EXPORT): tools/Dockerfile $(WEAVETOOLS_EXES)
tests:
cd nameserver; go test -tags netgo
$(PUBLISH): publish_%:
$(SUDO) docker tag $(DOCKERHUB_USER)/$* $(DOCKERHUB_USER)/$*:$(WEAVE_VERSION)
$(SUDO) docker push $(DOCKERHUB_USER)/$*:$(WEAVE_VERSION)
$(SUDO) docker push $(DOCKERHUB_USER)/$*:latest
publish: $(PUBLISH)
clean:
-$(SUDO) docker rmi $(WEAVER_IMAGE) $(WEAVEDNS_IMAGE) $(WEAVETOOLS_IMAGE)
rm -f $(WEAVER_EXE) $(WEAVEDNS_EXE) $(WEAVER_EXPORT) $(WEAVEDNS_EXPORT) $(WEAVETOOLS_EXPORT)