diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f5c1ae4 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/deploy.sh b/deploy.sh index bd06282..d2ad5f7 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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` diff --git a/src/build.sh b/src/build.sh index 9cde5b3..d87458a 100755 --- a/src/build.sh +++ b/src/build.sh @@ -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