try drillster/drone-volume-cache
This commit is contained in:
20
.drone.yml
20
.drone.yml
@@ -8,6 +8,16 @@ trigger:
|
||||
- main
|
||||
|
||||
steps:
|
||||
- name: restore-cache
|
||||
image: drillster/drone-volume-cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
|
||||
- name: build
|
||||
image: node
|
||||
volumes:
|
||||
@@ -17,6 +27,16 @@ steps:
|
||||
- yarn install
|
||||
# - yarn build
|
||||
|
||||
- name: rebuild-cache
|
||||
image: drillster/drone-volume-cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./node_modules
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
|
Reference in New Issue
Block a user