diff --git a/circle.yml b/circle.yml index dcd63404d1..b62e791e37 100644 --- a/circle.yml +++ b/circle.yml @@ -69,6 +69,15 @@ deployment: (test "${DOCKER_ORGANIZATION:-$DOCKER_USER}" == "weaveworks" || docker tag weaveworks/scope:latest ${DOCKER_ORGANIZATION:-$DOCKER_USER}/scope:latest) && docker push ${DOCKER_ORGANIZATION:-$DOCKER_USER}/scope ) + hub-dev: + branch: /^((?!master).)*$/ # not the master branch + commands: + - > + test -z "${DEPLOY_BRANCH}" || test -z "${DOCKER_USER}" || ( + docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS && + docker tag weaveworks/scope:latest ${DOCKER_ORGANIZATION:-$DOCKER_USER}/scope:${CIRCLE_BRANCH//\//-} && + docker push ${DOCKER_ORGANIZATION:-$DOCKER_USER}/scope:${CIRCLE_BRANCH//\//-} + ) # release: # branch: /release-[0-9]+\.[0-9]+/ # owner: weaveworks