File tree Expand file tree Collapse file tree 1 file changed +25
-16
lines changed Expand file tree Collapse file tree 1 file changed +25
-16
lines changed Original file line number Diff line number Diff line change 1
- pipeline :
1
+ kind : pipeline
2
+ name : build
3
+
4
+ steps :
2
5
# Restore potentially cached build folders
3
- restore-cache :
4
- image : drillster/drone-volume-cache
6
+ - name : restore-cache
7
+ image : drillster/drone-volume-cache
8
+ settings :
5
9
restore : true
6
10
mount :
7
11
- node_modules
8
- volumes :
9
- - /tmp/drone-cache:/cache
12
+ volumes :
13
+ - name : cache
14
+ host :
15
+ path : /tmp/drone-cache:/cache
10
16
11
17
# Install dependencies, build and test the typescript code
12
- build :
13
- image : node:10-alpine
14
- group : build
15
- commands :
16
- - yarn install
17
- - yarn run build:prod
18
- - yarn run test
18
+ - name : build
19
+ image : node:10-alpine
20
+ group : build
21
+ commands :
22
+ - yarn install
23
+ - yarn run build:prod
24
+ - yarn run test
19
25
20
26
# Rebuild cache volume from current build workspace
21
- rebuild-cache :
22
- image : drillster/drone-volume-cache
27
+ - name : rebuild-cache
28
+ image : drillster/drone-volume-cache
29
+ settings :
23
30
rebuild : true
24
31
mount :
25
32
- ./node_modules
26
- volumes :
27
- - /tmp/drone-cache:/cache
33
+ volumes :
34
+ - name : cache
35
+ host :
36
+ path : /tmp/drone-cache:/cache
You can’t perform that action at this time.
0 commit comments