Skip to content

Commit c8eaeef

Browse files
committed
Update to 1.0 drone yml format
1 parent 7fabb4b commit c8eaeef

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

.drone.yml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
1-
pipeline:
1+
kind: pipeline
2+
name: build
3+
4+
steps:
25
# 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:
59
restore: true
610
mount:
711
- node_modules
8-
volumes:
9-
- /tmp/drone-cache:/cache
12+
volumes:
13+
- name: cache
14+
host:
15+
path: /tmp/drone-cache:/cache
1016

1117
# 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
1925

2026
# 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:
2330
rebuild: true
2431
mount:
2532
- ./node_modules
26-
volumes:
27-
- /tmp/drone-cache:/cache
33+
volumes:
34+
- name: cache
35+
host:
36+
path: /tmp/drone-cache:/cache

0 commit comments

Comments
 (0)