test with drone
This commit is contained in:
parent
9a0f2e01a6
commit
395134f1bf
39
.drone.yml
Normal file
39
.drone.yml
Normal 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
|
@ -4,6 +4,7 @@ set -e
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
sh -c 'cd src && ./build.sh'
|
sh -c 'cd src && ./build.sh'
|
||||||
|
mdbook build
|
||||||
|
|
||||||
time=`date +%m%d%Y%H%M`
|
time=`date +%m%d%Y%H%M`
|
||||||
tag=`git describe --tags`
|
tag=`git describe --tags`
|
||||||
|
@ -107,5 +107,4 @@ mkdir -p ../book
|
|||||||
cp -vrf tulpanomicon.mobi ../book/
|
cp -vrf tulpanomicon.mobi ../book/
|
||||||
cp -vrf tulpanomicon.epub ../book/
|
cp -vrf tulpanomicon.epub ../book/
|
||||||
cp -vrf tulpanomicon.pdf ../book/
|
cp -vrf tulpanomicon.pdf ../book/
|
||||||
cd .. && mdbook build
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user