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

This commit is contained in:
Dominic Grimm 2022-02-18 19:08:29 +01:00
parent 7b2a5f2d86
commit 9bfe6c17ff
2 changed files with 24 additions and 42 deletions

View file

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

View file

@ -1 +0,0 @@
# API