diff --git a/circle.yml b/circle.yml index b0b8a79a..d9a0e8e1 100644 --- a/circle.yml +++ b/circle.yml @@ -6,9 +6,20 @@ machine: dependencies: pre: - - sudo pip install docker-compose + - sudo pip install docker-compose==1.9.0 test: override: - docker-compose up -d - docker-compose run dockerapp python test.py + +deployment: + hub: + branch: [fix-for-ci] + commands: + - docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_USER_ID -p $DOCKER_HUB_PWD + - docker tag dockerapp_dockerapp $DOCKER_HUB_USER_ID/dockerapp:$CIRCLE_SHA1 + - docker tag dockerapp_dockerapp $DOCKER_HUB_USER_ID/dockerapp:latest + - docker push $DOCKER_HUB_USER_ID/dockerapp:$CIRCLE_SHA1 + - docker push $DOCKER_HUB_USER_ID/dockerapp:latest +