-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
66 lines (55 loc) · 1.35 KB
/
Copy path.travis.yml
File metadata and controls
66 lines (55 loc) · 1.35 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: node_js
services:
- docker
cache: yarn
env:
global:
- PUBLIC_URL=/admin
matrix:
include:
- node_js: '9'
env:
- DEPLOY=1
- node_js: '10'
before_install:
- export PATH="$(yarn global bin):$PATH"
- yarn global add greenkeeper-lockfile@1
before_script:
- greenkeeper-lockfile-update
script:
- yarn run lint
- yarn run build
after_script: greenkeeper-lockfile-upload
addons:
ssh_known_hosts: s11.mydevil.net
before_deploy:
- >-
export APP_VERSION=$(cat package.json | grep "\"version\":" | sed -E
"s/\s+\"version\": \"(.*)\",/v\1/") && echo $APP_VERSION
- >-
openssl aes-256-cbc -K $encrypted_48044a6e4342_key -iv
$encrypted_48044a6e4342_iv -in ./deploy/mydevil_rsa.enc -out
/tmp/mydevil_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/mydevil_rsa
- ssh-add /tmp/mydevil_rsa
- yarn global add conventional-changelog-cli conventional-github-releaser
deploy:
- provider: script
skip_cleanup: true
script: bash ./deploy/mydevil-deploy.sh
on:
branch: develop
condition: $DEPLOY = 1
- provider: script
skip_cleanup: true
script: bash ./deploy/github-tag.sh
on:
branch: master
condition: $DEPLOY = 1
- provider: script
skip_cleanup: true
script: bash ./deploy/docker-app-push.sh
on:
tags: true
condition: $DEPLOY = 1