-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 861 Bytes
/
.travis.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
language: node_js
node_js:
- "14"
branches:
only:
- master
- staging
services:
- docker
before_deploy:
- curl https://cli-assets.heroku.com/install.sh | sh
- docker login --username=$HEROKU_LOGIN --password=$HEROKU_API_KEY registry.heroku.com
script:
- echo 'SETTINGS_JWT_SECRET_OR_PUBLIC_KEY='$SETTINGS_JWT_SECRET_OR_PUBLIC_KEY > .env
- docker-compose -f docker-compose.dev.yaml up --build -d
- "npm run build:test"
- "npm run start:test"
- docker-compose -f docker-compose.dev.yaml down
deploy:
provider: script
script:
docker build -f Dockerfile.production -t epoc/epoc:latest .;
docker tag epoc/epoc:latest registry.heroku.com/$HEROKU_APP/web;
docker push epoc/epoc:latest;
docker push registry.heroku.com/$HEROKU_APP/web;
heroku container:release web --app $HEROKU_APP
on:
branch: master