-
Notifications
You must be signed in to change notification settings - Fork 17
/
.drone.yml
53 lines (52 loc) · 1.14 KB
/
.drone.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
kind: pipeline
name: zbxtable-web
steps:
- name: build
image: node:16.20.2-bullseye
commands:
- npm install --legacy-peer-deps
- npm run build
- tar zcvf web.tar.gz ./web/
volumes:
- name: cache
path: /drone/src/zbxtable-web/node_modules
- name: scp dev
image: appleboy/drone-scp
settings:
host:
from_secret: 222_host
port:
from_secret: port
username:
from_secret: username
password:
from_secret: 222_password
command_timeout: 10m
strip_components: 1
target: /home/wwwroot/downloads/dev
source: ./web.tar.gz
when:
branch:
- dev
- name: scp stable
image: appleboy/drone-scp
settings:
host:
from_secret: 222_host
port:
from_secret: port
username:
from_secret: username
password:
from_secret: 222_password
command_timeout: 10m
strip_components: 1
target: /home/wwwroot/downloads/stable
source: ./web.tar.gz
when:
branch:
- 2.1
volumes:
- name: cache
host:
path: /tmp/drone/cache/zbxtable-web/node_modules