Add exclude filter for rsync and reenable build cache
All checks were successful
the build was successful
All checks were successful
the build was successful
This commit is contained in:
parent
8d322e6c2b
commit
8cfac825a1
32
.drone.yml
32
.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
|
||||
|
Loading…
Reference in New Issue
Block a user