From 7c8cc33d1d225ec347b2675849eb6f4bf10f925f Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 9 May 2020 00:17:10 +0200 Subject: [PATCH] [TASK] add cache to drone --- .drone.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8c964fe..22163b1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,7 +2,18 @@ kind: pipeline type: docker name: default -steps: +steps: +- name: Restore Cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + restore: true + mount: + - ./node_modules + - ./dist + - name: Build DockerImage image: docker volumes: @@ -37,7 +48,21 @@ steps: when: event: tag +- name: Rebuild Cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + rebuild: true + mount: + - ./node_modules + - ./dist + volumes: - name: docker_sock host: - path: /var/run/docker.sock \ No newline at end of file + path: /var/run/docker.sock +- name: cache + host: + path: /volume2/docker2/dronecache \ No newline at end of file