-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcircle.yml
More file actions
44 lines (39 loc) · 1.14 KB
/
circle.yml
File metadata and controls
44 lines (39 loc) · 1.14 KB
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
35
36
37
38
39
40
41
42
43
44
machine:
node:
version: 6.7.0
environment:
NODE_ENV: test
services:
- docker
dependencies:
pre:
- sudo pip install awscli
- aws configure set default.region eu-west-1
- aws configure set default.output json
- eval $(aws ecr get-login --region eu-west-1)
- sudo -u postgres createuser dih -s
- createdb -U dih dih
- npm install -g yarn
override:
- yarn
test:
override:
- yarn test
post:
- yarn coverage
deployment:
production:
branch: master
commands:
- docker build -t dih-api:production-latest .
- docker tag dih-api:production-latest $EXTERNAL_REGISTRY:production-latest
- docker push $EXTERNAL_REGISTRY:production-latest
- yarn deploy:production
staging:
branch: dev
commands:
- docker build -t dih-api:staging-latest .
- docker tag dih-api:staging-latest $EXTERNAL_REGISTRY:staging-latest
- docker push $EXTERNAL_REGISTRY:staging-latest
- npm run docs
- yarn deploy:staging