-
Notifications
You must be signed in to change notification settings - Fork 16
/
circle.yml
34 lines (30 loc) · 1.08 KB
/
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
26
27
28
29
30
31
32
33
34
machine:
services:
- docker
dependencies:
pre:
- sudo apt-add-repository -y ppa:valhalla-core/valhalla
- sudo apt-get update
- sudo apt-get install awscli parallel python python-pip jq git openjdk-8-jdk maven prime-server-bin
- pip install kafka-python
- git clone [email protected]:opentraffic/ecs-deploy
- git clone [email protected]:opentraffic/hub-deploy
override:
- docker info
- docker build --rm=false -t reporter:latest .
test:
override:
- ./tests/circle.sh
deployment:
prod:
branch: master
commands:
- ecs-deploy/bin/deploy.sh --env prod --region us-east-1 --project reporter
- ecs-deploy/bin/deploy.sh --env prod --region us-east-1 --project reporter-kafka --no-push-image
- hub-deploy/bin/deploy.sh reporter
dev:
branch: dev
commands:
- ecs-deploy/bin/deploy.sh --env dev --region us-east-1 --project reporter
- ecs-deploy/bin/deploy.sh --env dev --region us-east-1 --project reporter-kafka --cluster reporter-dev --no-push-image
#- ./tests/live.sh "https://reporter-dev.opentraffic.io/report?"