2018-10-13 13:45:40 +02:00
|
|
|
pipeline:
|
2018-10-13 17:48:00 +02:00
|
|
|
# restore-cache:
|
|
|
|
# image: drillster/drone-volume-cache
|
|
|
|
# restore: true
|
|
|
|
# mount:
|
|
|
|
# - build
|
|
|
|
# volumes:
|
|
|
|
# - /home/gitea/gitea/drone_build_cache/notes:/cache
|
2018-10-13 13:45:40 +02:00
|
|
|
|
|
|
|
build:
|
2018-10-13 16:19:45 +02:00
|
|
|
image: local/pandoc
|
2018-10-13 13:45:40 +02:00
|
|
|
commands:
|
|
|
|
- make
|
|
|
|
|
|
|
|
compress:
|
|
|
|
image: alpine:latest
|
|
|
|
commands:
|
|
|
|
- apk --no-cache update
|
|
|
|
- apk add make
|
|
|
|
- make compress
|
|
|
|
|
2018-10-13 17:44:43 +02:00
|
|
|
deploy:
|
|
|
|
image: drillster/drone-rsync
|
|
|
|
hosts: [ "vbrandl.net" ]
|
|
|
|
target: /var/www/notes.vbrandl.net
|
|
|
|
source: build/*
|
|
|
|
user: hugo
|
|
|
|
secrets: [ rsync_key ]
|
|
|
|
when:
|
|
|
|
branch: master
|
2018-10-13 13:45:40 +02:00
|
|
|
|
2018-10-13 17:48:00 +02:00
|
|
|
# rebuild-cache:
|
|
|
|
# image: drillster/drone-volume-cache
|
|
|
|
# rebuild: true
|
|
|
|
# mount:
|
|
|
|
# - build
|
|
|
|
# volumes:
|
|
|
|
# - /home/gitea/gitea/drone_build_cache/notes:/cache
|