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:
|
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user