From de84bdbbe53efc44474f034d94a70f4e310f5b52 Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Fri, 18 Feb 2022 18:33:39 +0100 Subject: [PATCH] Updated ci --- .drone.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.drone.yml b/.drone.yml index cc8d2b2..daef89c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,6 +20,7 @@ steps: - name: cache path: /cache settings: + restore: true mount: - ./docs - name: docs @@ -170,3 +171,43 @@ trigger: - promote target: - production + +--- +kind: pipeline +type: docker +name: clear-cache + +steps: + - name: restore-cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + restore: true + mount: + - ./docs + - name: clear-cache + image: alpine + commands: + - rm -rf /cache/* + - name: rebuild-cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + rebuild: true + mount: + - ./docs + +volumes: + - name: cache + host: + path: /tmp/cache + +depends_on: + - default + - backend + - frontend + - deploy