forked from townie/boilerpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
25 lines (22 loc) · 898 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
machine:
services:
- docker
dependencies:
override:
- sudo service docker stop; sudo curl -L -o /usr/bin/docker 'http://s3-external-1.amazonaws.com/circle-downloads/docker-1.6.0-circleci'; sudo chmod 0755 /usr/bin/docker; sudo service docker start; true
- docker info
- sudo pip install -U docker-compose
- docker-compose --version
- docker-compose pull
- docker-compose build boilerpipe
test:
override:
- docker-compose run boilerpipe npm test
deployment:
hub:
branch: master
commands:
- echo "{\"https://index.docker.io/v1/\":{\"auth\":\"<AUTH>\",\"email\":\"<EMAIL>\"}}" | sed "s/<EMAIL>/$HUB_EMAIL/;s/<AUTH>/$HUB_AUTH/" > ~/.dockercfg
- docker tag boilerpipe_boilerpipe woorank/boilerpipe:v$CIRCLE_BUILD_NUM
- docker tag woorank/boilerpipe:v$CIRCLE_BUILD_NUM woorank/boilerpipe:$latest
- docker push woorank/boilerpipe