Update ci
Some checks reported errors
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build was killed

This commit is contained in:
Dominic Grimm 2022-02-18 18:54:52 +01:00
parent dac0785c65
commit 2adc9dca2a

View file

@ -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