From 2adc9dca2a9fe590dc06d91f2e92fe4b7918b73c Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Fri, 18 Feb 2022 18:54:52 +0100 Subject: [PATCH] Update ci --- .drone.yml | 81 +++++++++++++++++++++++++++--------------------------- 1 file changed, 41 insertions(+), 40 deletions(-) diff --git a/.drone.yml b/.drone.yml index c43f1a7..288f582 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,37 +1,3 @@ ---- -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 - --- kind: pipeline type: docker @@ -79,7 +45,7 @@ steps: settings: rebuild: true mount: - - ./docs + - /cache/docs depends_on: - docs @@ -88,9 +54,6 @@ volumes: host: path: /tmp/cache -depends_on: - - clear-cache - --- kind: pipeline type: docker @@ -145,7 +108,6 @@ volumes: path: /var/run/docker.sock depends_on: - - clear-cache - default --- @@ -168,7 +130,6 @@ volumes: path: /var/run/docker.sock depends_on: - - clear-cache - default --- @@ -217,3 +178,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: + - /cache/docs + +volumes: + - name: cache + host: + path: /tmp/cache + +depends_on: + - default + - backend + - frontend + - deploy