Skip to content

Commit

Permalink
Merge pull request #1055 from kinvolk/alban/build-2
Browse files Browse the repository at this point in the history
circle.yml: deploy on a personal hub account
  • Loading branch information
tomwilkie committed Feb 29, 2016
2 parents 63a07e1 + c99400e commit 3e611f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ test:
deployment:
hub:
branch: master
owner: weaveworks
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- docker push weaveworks/scope
- >
test -z "${DOCKER_USER}" || (
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS &&
(test "${DOCKER_USER}" == "weaveworks" || docker tag weaveworks/scope:latest $DOCKER_USER/scope:latest) &&
docker push $DOCKER_USER/scope
)

0 comments on commit 3e611f8

Please sign in to comment.