From a3d070690f48a942da482ea9f864125a9ba482fb Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Tue, 17 Jan 2017 11:16:07 +0000 Subject: [PATCH] Deploy to quay when merging to master To workaround the 500s obtained from Docker Hub --- circle.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/circle.yml b/circle.yml index b2abd471fc..73e4c53141 100644 --- a/circle.yml +++ b/circle.yml @@ -77,6 +77,11 @@ deployment: docker push ${DOCKER_ORGANIZATION:-$DOCKER_USER}/scope:$(./tools/image-tag) && (test -z "${UI_BUCKET_KEY_ID}" || make ui-upload) ) + - | test -z "${QUAY_USER}" || ( + docker docker login -e '.' -u "$QUAY_USER" -p "$QUAY_PASSWORD" quay.io && + docker tag weaveworks/scope:$(./tools/image-tag) "quay.io/${QUAY_ORGANIZATION}/scope:$(./tools/image-tag)" && + docker push "quay.io/${QUAY_ORGANIZATION}/scope:$(./tools/image-tag)" + ) hub-dev: branch: /^((?!master).)*$/ # not the master branch commands: