Skip to content

Commit

Permalink
added auto docker hub deployment to circle
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgorgo committed Dec 2, 2016
1 parent 00530d6 commit 1138611
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ general:
artifacts:
- "~/ds054/out"
- "~/ds005/out"

deployment:
hub:
branch: master
commands:
- if [[ -n "$DOCKER_PASS" ]]; then docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS && docker push poldracklab/fmriprep:latest; fi :
timeout: 21600
- if [[ -n "$DOCKER_PASS" ]]; then docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS && docker tag poldracklab/fmriprep poldracklab/fmriprep:V$CIRCLE_BUILD_NUM-${CIRCLE_SHA1:0:6} && docker push poldracklab/fmriprep:V$CIRCLE_BUILD_NUM-${CIRCLE_SHA1:0:6}; fi :
timeout: 21600

0 comments on commit 1138611

Please sign in to comment.