Update ci
This commit is contained in:
parent
7b2a5f2d86
commit
9bfe6c17ff
65
.drone.yml
65
.drone.yml
|
@ -33,7 +33,7 @@ steps:
|
|||
- mdbook build
|
||||
- rm -rf /cache/*
|
||||
- mkdir /cache/docs
|
||||
- mv book/* /cache/docs
|
||||
- cp -r book/* /cache/docs
|
||||
depends_on:
|
||||
- markdownlint
|
||||
- restore-cache
|
||||
|
@ -77,6 +77,15 @@ steps:
|
|||
commands:
|
||||
- cd docker/backend
|
||||
- shards install
|
||||
- name: restore-cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- ./docs
|
||||
- name: docs
|
||||
image: crystallang/crystal:1.3-alpine
|
||||
volumes:
|
||||
|
@ -85,9 +94,23 @@ steps:
|
|||
commands:
|
||||
- cd docker/backend
|
||||
- make docs
|
||||
- mkdir /cache/docs/api
|
||||
- cp -r docs/* /cache/docs/api
|
||||
depends_on:
|
||||
- ameba
|
||||
- deps
|
||||
- restore-cache
|
||||
- name: rebuild-cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./docs
|
||||
depends_on:
|
||||
- docs
|
||||
- name: build
|
||||
image: tmaier/docker-compose
|
||||
volumes:
|
||||
|
@ -178,43 +201,3 @@ 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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
# API
|
Loading…
Reference in a new issue