lewa/.drone.yml

39 lines
737 B
YAML

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
path: /lewa/book
- name: build mdbook
image: xena/mdbook
pull: always
commands:
- cd book && mdbook build
volumes:
- name: book
path: /lewa/book
- name: build image
image: docker:dind
volumes:
- name: book
path: /lewa/book
- name: dockersock
path: /var/run/docker.sock
commands:
- sh -c 'docker build -t xena/lewa:$DRONE_COMMIT .'
volumes:
- name: book
temp: {}
- name: dockersock
host:
path: /var/run/docker.sock