Add exclude filter for rsync and reenable build cache
All checks were successful
the build was successful

This commit is contained in:
Valentin Brandl 2018-10-24 14:51:31 +02:00
parent 8d322e6c2b
commit 8cfac825a1
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -1,11 +1,11 @@
pipeline: pipeline:
# restore-cache: restore-cache:
# image: drillster/drone-volume-cache image: drillster/drone-volume-cache
# restore: true restore: true
# mount: mount:
# - build - build
# volumes: volumes:
# - /home/gitea/gitea/drone_build_cache/notes:/cache - /home/gitea/gitea/drone_build_cache/notes:/cache
build: build:
image: vbrandl/notes-builder:latest image: vbrandl/notes-builder:latest
@ -19,21 +19,21 @@ pipeline:
- apk add make - apk add make
- make compress - make compress
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- build
volumes:
- /home/gitea/gitea/drone_build_cache/notes:/cache
deploy: deploy:
image: drillster/drone-rsync image: drillster/drone-rsync
hosts: [ "vbrandl.net" ] hosts: [ "vbrandl.net" ]
target: /var/www/notes.vbrandl.net target: /var/www/notes.vbrandl.net
source: build/* source: build/*
include: ["**.html", "**.pdf", "**.png"] exclude: ["*.aux", "*.fdb_latexmk", "*.fls", "*.log"]
user: hugo user: hugo
secrets: [ rsync_key ] secrets: [ rsync_key ]
when: when:
branch: master branch: master
# rebuild-cache:
# image: drillster/drone-volume-cache
# rebuild: true
# mount:
# - build
# volumes:
# - /home/gitea/gitea/drone_build_cache/notes:/cache