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
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
@ -79,7 +45,7 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
rebuild: true
|
rebuild: true
|
||||||
mount:
|
mount:
|
||||||
- ./docs
|
- /cache/docs
|
||||||
depends_on:
|
depends_on:
|
||||||
- docs
|
- docs
|
||||||
|
|
||||||
|
@ -88,9 +54,6 @@ volumes:
|
||||||
host:
|
host:
|
||||||
path: /tmp/cache
|
path: /tmp/cache
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- clear-cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
@ -145,7 +108,6 @@ volumes:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- clear-cache
|
|
||||||
- default
|
- default
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -168,7 +130,6 @@ volumes:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- clear-cache
|
|
||||||
- default
|
- default
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -217,3 +178,43 @@ trigger:
|
||||||
- promote
|
- promote
|
||||||
target:
|
target:
|
||||||
- production
|
- 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