From dc2988cf32c87546d6235db1e494009946e115cc Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 13 Oct 2018 13:45:40 +0200 Subject: [PATCH] Add CI config --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..dd04528 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +pipeline: + restore-cache: + image: drillster/drone-volume-cache + restore: true + mount: + - build + volumes: + - /home/gitea/gitea/drone_build_cache/notes:/cache + + build: + image: jpbernius/pandoc + commands: + - apt-get update && apt-get -y install make + - 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