test with drone
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Cadey Ratio 2020-01-19 19:18:54 +00:00
parent 9a0f2e01a6
commit 395134f1bf
3 changed files with 40 additions and 1 deletions

39
.drone.yml Normal file
View File

@ -0,0 +1,39 @@
kind: pipeline
name: default
workspace:
base: /
path: tulpanomicon
steps:
- name: build ebook files
image: xena/pandoc
pull: always
commands:
- cd src && ./build.sh
volumes:
- name: book
path: /tulpanomicon/book
- name: build mdbook
image: xena/mdbook
pull: always
commands:
- mdbook build
volumes:
- name: book
path: /tulpanomicon/book
- name: build image
image: docker:dind
volumes:
- name: book
path: /tulpanomicon/book
- name: dockersock
path: /var/run/docker.sock
commands:
- docker build .
volumes:
- name: book
temp: {}
- name: dockersock
host:
path: /var/run/docker.sock

View File

@ -4,6 +4,7 @@ set -e
set -x
sh -c 'cd src && ./build.sh'
mdbook build
time=`date +%m%d%Y%H%M`
tag=`git describe --tags`

View File

@ -107,5 +107,4 @@ mkdir -p ../book
cp -vrf tulpanomicon.mobi ../book/
cp -vrf tulpanomicon.epub ../book/
cp -vrf tulpanomicon.pdf ../book/
cd .. && mdbook build