-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcircle.yml
More file actions
24 lines (21 loc) · 715 Bytes
/
circle.yml
File metadata and controls
24 lines (21 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
dependencies:
pre:
- sudo pip install docker-compose
test:
override:
- docker-compose up -d
- docker-compose run dockerapp python test.py
deployment:
hub:
branch: /.*/
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