Permalink
Browse files

Only push tags to Docker Hub rather than every master commit

  • Loading branch information...
holic committed May 7, 2016
1 parent 2f02dc4 commit 7d9660499d3857162b7102609f4da2116ed9f40a
Showing with 5 additions and 8 deletions.
  1. +5 −8 circle.yml
View
@@ -13,16 +13,13 @@ test:
- docker build -t holic/redirect.name .
deployment:
- hub_latest:
- owner: holic
- branch: master
- commands:
- - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- - docker push holic/redirect.name:latest
- hub_tags:
+ hub:
owner: holic
tag: /.*/
commands:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- "docker tag holic/redirect.name holic/redirect.name:${CIRCLE_TAG}"
- - "docker push holic/redirect.name:${CIRCLE_TAG}"
+ - docker push holic/redirect.name
+ # If the above push doesn't work, try pushing each tag separately?
+ # - "docker push holic/redirect.name:${CIRCLE_TAG}"
+ # - docker push holic/redirect.name:latest

0 comments on commit 7d96604

Please sign in to comment.