Update ci
This commit is contained in:
parent
dac0785c65
commit
2adc9dca2a
1 changed files with 41 additions and 40 deletions
81
.drone.yml
81
.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
|
||||
|
|
Loading…
Reference in a new issue