From f9de6df426a1ae1abb544250cae6250ff10c8639 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 20 Aug 2015 10:54:33 +0000 Subject: [PATCH 1/2] Publish latest images from CI on successful builds. This time rebuild without insturmentation first. --- Makefile | 4 +++- circle.yml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4387e3e3..5ed6a3a8 100644 --- a/Makefile +++ b/Makefile @@ -120,10 +120,12 @@ endif publish: $(PUBLISH) -clean: +clean-bin: -$(SUDO) docker rmi $(IMAGES) go clean -r ./... rm -f $(EXES) $(IMAGES_UPTODATE) $(WEAVE_EXPORT) + +clean: clean-bin rm -rf test/tls/*.pem test/coverage.* test/coverage build: diff --git a/circle.yml b/circle.yml index 70117e68..b46e8cb1 100644 --- a/circle.yml +++ b/circle.yml @@ -47,6 +47,10 @@ test: - cd $SRCDIR/test; eval $(./gce.sh hosts); export COVERAGE=true; ./run_all.sh: parallel: true timeout: 300 + - cd $SRCDIR; make clean-bin: + parallel: true + - docker run -v /var/run/docker.sock:/run/docker.sock -v /home/ubuntu:/home/go weaveworks/weave-build: + parallel: true post: - cd $SRCDIR/test; ./gce.sh destroy: parallel: true @@ -59,3 +63,11 @@ teardown: parallel: true - test "$CIRCLE_NODE_INDEX" != "0" || (cd $SRCDIR/test; cp coverage.* $CIRCLE_ARTIFACTS): parallel: true + +deployment: + hub: + branch: master + owner: weaveworks + commands: + - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS + - make publish From 2b4fd738da6ab4378b5ba3d5c5a98ad8f0a9e659 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Mon, 28 Sep 2015 09:05:10 +0000 Subject: [PATCH 2/2] Review feedback --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ed6a3a8..3dca5c45 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PUBLISH=publish_weave publish_weaveexec .DEFAULT: all -.PHONY: all update tests publish $(PUBLISH) clean prerequisites build travis run-smoketests +.PHONY: all update tests publish $(PUBLISH) clean clean-bin prerequisites build travis run-smoketests # If you can use docker without being root, you can do "make SUDO=" SUDO=sudo