forked from vaadin/pwa-competition
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wercker.yml
44 lines (43 loc) · 1.24 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
box : node
no-response-timeout: 60
build:
steps :
- add-ssh-key:
keyname: WERCKER
- add-to-known_hosts:
hostname: bitbucket.org
fingerprint: 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
- script :
name : Display node version
code : |
node -v
- npm-install
- script :
name : Global modules and bower Install
code : |
npm install -g bower
npm install -g gulp
bower --allow-root install --f
- script :
name : Run gulp
code : |
gulp default
command-timeout: 60
deploy:
steps:
- add-to-known_hosts:
hostname: $DEPLOY_HOST
- mktemp:
envvar: PRIVATEKEY_PATH
- create-file:
name: write key
filename: $PRIVATEKEY_PATH
content: $WERCKER_PRIVATE
overwrite: true
hide-from-log: true
- script:
name: Copy application
code: |
pwd
ls -la
tar czf - * | ssh -i $PRIVATEKEY_PATH -l root/dist $DEPLOY_HOST "cd $TARGET_LOCATION; tar xvzf -"