diff --git a/.drone.yml b/.drone.yml index 6b11541..65f893a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,11 @@ pipeline: - # restore-cache: - # image: drillster/drone-volume-cache - # restore: true - # mount: - # - build - # volumes: - # - /home/gitea/gitea/drone_build_cache/notes:/cache + restore-cache: + image: drillster/drone-volume-cache + restore: true + mount: + - build + volumes: + - /home/gitea/gitea/drone_build_cache/notes:/cache build: image: vbrandl/notes-builder:latest @@ -19,21 +19,21 @@ pipeline: - apk add make - make compress + rebuild-cache: + image: drillster/drone-volume-cache + rebuild: true + mount: + - build + volumes: + - /home/gitea/gitea/drone_build_cache/notes:/cache + deploy: image: drillster/drone-rsync hosts: [ "vbrandl.net" ] target: /var/www/notes.vbrandl.net source: build/* - include: ["**.html", "**.pdf", "**.png"] + exclude: ["*.aux", "*.fdb_latexmk", "*.fls", "*.log"] 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