Implement build cache
All checks were successful
the build was successful

This commit is contained in:
Valentin Brandl 2018-07-20 18:20:57 +02:00
parent 08dca26a01
commit 1eb333beee
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -1,4 +1,24 @@
pipeline: pipeline:
restore-cache-dev:
image: drillster/drone-volume-cache
restore: true
mount:
- public
volumes:
- /home/gitea/gitea/drone_build_cache/staging.vbrandl.net:/cache
when:
branch: develop
restore-cache-prod:
image: drillster/drone-volume-cache
restore: true
mount:
- public
volumes:
- /home/gitea/gitea/drone_build_cache/vbrandl.net:/cache
when:
branch: master
build-dev: build-dev:
image: cbrgm/drone-hugo:latest image: cbrgm/drone-hugo:latest
buildDrafts: true buildDrafts: true
@ -45,3 +65,23 @@ pipeline:
secrets: [ rsync_key ] secrets: [ rsync_key ]
when: when:
branch: master branch: master
rebuild-cache-dev:
image: drillster/drone-volume-cache
rebuild: true
mount:
- public
volumes:
- /home/gitea/gitea/drone_build_cache/staging.vbrandl.net:/cache
when:
branch: develop
rebuild-cache-prod:
image: drillster/drone-volume-cache
rebuild: true
mount:
- public
volumes:
- /home/gitea/gitea/drone_build_cache/vbrandl.net:/cache
when:
branch: master