-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
59 lines (46 loc) · 1.27 KB
/
wercker.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
box: node:6.0
build:
steps:
- npm-install
- npm-test
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
deploy:
steps:
- add-to-known_hosts:
hostname: $GIT_DEPLOY_HOST
- add-ssh-key:
keyname: DIGITAL_OCEAN
- script:
name: push to dokku
code: |
echo "Pushing to: $GIT_DEPLOY_USER@$GIT_DEPLOY_HOST:$GIT_DEPLOY_APP"
git remote add dokku $GIT_DEPLOY_USER@$GIT_DEPLOY_HOST:$GIT_DEPLOY_APP
git push dokku HEAD:master -f
generate_docs:
steps:
- script:
name: Remove modules
code: |
rm -fr node_modules
- npm-install
- add-to-known_hosts:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
type: rsa
- script:
name: Generate documentation
code: |
npm run bootprint -- openapi $OPEN_API_URL docs
- script:
name: Configure git
code: |
git config --global user.email "[email protected]"
git config --global user.name "Wercker Deployment"
- script:
name: Update docs
code: |
npm run update-docs