From b8326f417f2bfbcb19dd8ed92693e77c917e0b6f Mon Sep 17 00:00:00 2001 From: jpellizzari Date: Wed, 22 Mar 2017 12:31:38 -0700 Subject: [PATCH] Added job to trigger service-ui build --- Makefile | 4 ++++ circle.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 684f21d5f..35d16c85b 100644 --- a/Makefile +++ b/Makefile @@ -203,6 +203,10 @@ ui-pkg-upload: tmp/weave-scope.tgz AWS_SECRET_ACCESS_KEY=$$UI_BUCKET_KEY_SECRET \ aws s3 cp tmp/weave-scope.tgz s3://weaveworks-js-modules/weave-scope/weave-scope.tgz +trigger-service-ui-build: + curl -H "Content-Type: application/json" -X POST \ + https://circleci.com/api/v1.1/project/github/weaveworks/service-ui/tree/master?circle-token=$$CIRCLE_API_TOKEN + clean: $(GO) clean ./... # Don't actually rmi the build images - rm'ing the .uptodate files is enough to ensure diff --git a/circle.yml b/circle.yml index 6c4a9c5e3..ce9c031fc 100644 --- a/circle.yml +++ b/circle.yml @@ -86,7 +86,7 @@ deployment: docker push ${DOCKER_ORGANIZATION:-$DOCKER_USER}/$IMAGE && docker push ${DOCKER_ORGANIZATION:-$DOCKER_USER}/$IMAGE:$(./tools/image-tag) done - (test -z "${UI_BUCKET_KEY_ID}" || (cd $SRCDIR && make ui-upload && make ui-pkg-upload)) + (test -z "${UI_BUCKET_KEY_ID}" || (cd $SRCDIR && make ui-upload && make ui-pkg-upload && make trigger-service-ui-build)) ) - | test -z "${QUAY_USER}" || (