Update CI
This commit is contained in:
parent
c8b763bf35
commit
b753895119
1 changed files with 68 additions and 1 deletions
69
.drone.yml
69
.drone.yml
|
@ -8,10 +8,77 @@ steps:
|
|||
image: ghcr.io/rikorose/gcc-cmake
|
||||
commands:
|
||||
- mkdir build && cd build
|
||||
- cmake ..
|
||||
- cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||
- make
|
||||
- name: docs
|
||||
image: docker.io/corentinaltepe/doxygen
|
||||
commands:
|
||||
- doxygen
|
||||
- ls docs
|
||||
depends_on:
|
||||
- build
|
||||
- name: rebuild-cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./docs/html
|
||||
depends_on:
|
||||
- docs
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /tmp/cache
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy-docs
|
||||
|
||||
steps:
|
||||
- name: restore-cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- ./docs/html
|
||||
- name: prepare-pages
|
||||
image: bitnami/git
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
- name: pages
|
||||
path: /tmp/pages
|
||||
commands:
|
||||
# - git clone --depth 1 --branch pages https://git.dergrimm.net/mentorenwahl/mentorenwahl.git /tmp/pages_old
|
||||
# - cp -r /tmp/pages_old/.git /tmp/pages
|
||||
# - cp -r ./docs/book/* /tmp/pages
|
||||
# - mkdir -p /tmp/pages/_api/backend
|
||||
# - cp -r ./backend/docs/* /tmp/pages/_api/backend
|
||||
- ls -la
|
||||
depends_on:
|
||||
- restore-cache
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /tmp/cache
|
||||
- name: pages
|
||||
temp: {}
|
||||
|
||||
depends_on:
|
||||
- default
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- promote
|
||||
|
|
Loading…
Reference in a new issue