40 lines
830 B
YAML
40 lines
830 B
YAML
pipeline:
|
|
restore-cache:
|
|
image: drillster/drone-volume-cache
|
|
restore: true
|
|
mount:
|
|
- build
|
|
volumes:
|
|
- /home/gitea/gitea/drone_build_cache/notes:/cache
|
|
|
|
build:
|
|
image: local/pandoc
|
|
commands:
|
|
- apt-get update && apt-get -y install graphviz build-essential
|
|
- make
|
|
|
|
compress:
|
|
image: alpine:latest
|
|
commands:
|
|
- apk --no-cache update
|
|
- apk add make
|
|
- make compress
|
|
|
|
# deploy:
|
|
# image: drillster/drone-rsync
|
|
# hosts: [ "vbrandl.net" ]
|
|
# target: /var/www/notes.vbrandl.net
|
|
# source: build/*
|
|
# user: hugo
|
|
# secrets: [ rsync_key ]
|
|
# when:
|
|
# branch: master
|
|
|
|
rebuild-cache:
|
|
image: drillster/drone-volume-cache
|
|
rebuild: true
|
|
mount:
|
|
- build
|
|
volumes:
|
|
- /home/gitea/gitea/drone_build_cache/notes:/cache
|