notes/.drone.yml

40 lines
803 B
YAML
Raw Normal View History

2018-10-13 13:45:40 +02:00
pipeline:
2018-10-24 14:31:37 +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 18:47:00 +02:00
2018-10-13 13:45:40 +02:00
build:
2018-10-13 19:56:49 +02:00
image: vbrandl/notes-builder:latest
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/*
2018-10-24 14:37:36 +02:00
include: ["**.html", "**.pdf", "**.png"]
2018-10-13 17:44:43 +02:00
user: hugo
secrets: [ rsync_key ]
when:
branch: master
2018-10-13 13:45:40 +02:00
2018-10-24 14:31:37 +02:00
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- build
volumes:
- /home/gitea/gitea/drone_build_cache/notes:/cache