forked from Shyam-Chen/Express-Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
40 lines (30 loc) · 952 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: 2
jobs:
build:
docker:
- image: circleci/node:8
working_directory: ~/Backend-Starter-Kit
branches:
only:
- master
steps:
- checkout
- setup_remote_docker
- run:
name: Build the image
command: docker-compose up -d
- run:
name: Build the application
command: docker-compose exec api yarn build
- run:
name: Test the application
command: docker-compose exec api yarn test
- run:
name: Test coverage integration
command: docker-compose exec api yarn codecov -- --token=${CODECOV_TOKEN}
- deploy:
name: Deploy to Heroku
command: |
docker login -u="Shyam Chen" -p="${HEROKU_TOKEN}" registry.heroku.com
docker build -f Dockerfile.prod -t registry.heroku.com/web-go-demo/web .
docker push registry.heroku.com/web-go-demo/web