-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
34 lines (32 loc) · 866 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
29
30
31
32
33
34
language: node_js
node_js:
- "10"
cache: yarn
install: yarn install --frozen-lockfile
script:
- echo "Not found tests"
jobs:
include:
- stage: deploy
script:
- yarn bootstrap
- yarn build
- npx netlify-cli deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_ACCESS_TOKEN --dir=./build --prod
on:
branch: master
- stage: docker-deploy
env:
- IMAGE_NAME=andrelmlins1/revelt
script:
- yarn bootstrap
- yarn build
- docker build --pull --cache-from "${IMAGE_NAME}:latest" --tag "$IMAGE_NAME" .
- docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
- docker tag "$IMAGE_NAME" "${IMAGE_NAME}:latest"
on:
branch: master
deploy:
provider: script
script: docker push "${IMAGE_NAME}:latest"
on:
branch: master