lewa/.drone.yml

39 lines
763 B
YAML
Raw Normal View History

2020-05-06 11:22:27 +00:00
kind: pipeline
name: default
workspace:
base: /lewa
steps:
- name: build ebook files
image: xena/pandoc
pull: always
commands:
- cd book/src && ./build.sh
volumes:
- name: book
2020-05-06 11:27:51 +00:00
path: /lewa/book/book
2020-05-06 11:22:27 +00:00
- name: build mdbook
image: xena/mdbook
pull: always
commands:
- cd book && mdbook build
volumes:
- name: book
2020-05-06 11:27:51 +00:00
path: /lewa/book/book
2020-05-06 11:22:27 +00:00
- name: build image
image: docker:dind
volumes:
- name: book
2020-05-06 11:27:51 +00:00
path: /lewa/book/book
2020-05-06 11:22:27 +00:00
- name: dockersock
path: /var/run/docker.sock
commands:
2020-05-06 11:29:04 +00:00
- cd book && sh -c 'docker build -t xena/lewa:$DRONE_COMMIT .'
2020-05-06 11:22:27 +00:00
volumes:
- name: book
temp: {}
- name: dockersock
host:
path: /var/run/docker.sock