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