Deploy to quay when merging to master

To workaround the 500s obtained from Docker Hub
This commit is contained in:
Alfonso Acosta
2017-01-17 11:16:07 +00:00
parent 496e3f2072
commit a8a2911bda

View File

@@ -77,6 +77,12 @@ 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: