39 lines
790 B
YAML
39 lines
790 B
YAML
kind: pipeline
|
|
name: default
|
|
workspace:
|
|
base: /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:
|
|
- sh -c 'docker build -t xena/tulpanomicon:$(date +%m%d%Y%H%M)-$(git describe --tags) .'
|
|
|
|
volumes:
|
|
- name: book
|
|
temp: {}
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|