-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.drone.yml
More file actions
48 lines (44 loc) · 990 Bytes
/
Copy path.drone.yml
File metadata and controls
48 lines (44 loc) · 990 Bytes
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
pipeline:
install:
image: node:10.9.0
commands:
# - yarn install
- pwd
# testing:
# image: node:10.9.0
# group: testing
# commands:
# - yarn run test
scp:
image: appleboy/drone-scp
pull: true
host:
- 139.162.9.68
port: 22
username: root
user: root
secrets: [ ssh_password ]
target: /root
source:
- /drone/src/github.com/horsekitlin/goodfood_admin
when:
branch: develop
ssh:
image: appleboy/drone-ssh
host:
- 139.162.9.68
username: root
user: root
secrets: [ ssh_password ]
command_timeout: 600
script:
- . /root/.nvm/nvm.sh && nvm use 10.9.0
- mkdir -p /var/www/html/goodfood.tomaslin.com.tw
- cd /root/drone/src/github.com/horsekitlin/goodfood_admin/
- yarn install
- yarn build
- cp -a build/* /var/www/html/goodfood.tomaslin.com.tw
- cd /root
- rm -rf /root/drone
when:
branch: develop