diff --git a/.drone.yml b/.drone.yml index b9afbd9..6fe04b3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,20 +4,15 @@ name: default steps: - name: restore-cache-with-filesystem - image: meltwater/drone-cache:dev - pull: true + image: drillster/drone-volume-cache settings: - backend: "filesystem" restore: true - cache_key: "volume" - archive_format: "gzip" - debug: true - # filesystem_cache_root: "/tmp/cache" mount: - - 'vendor' + - ./build + - ./gradle + # Mount the cache volume, needs "Trusted" volumes: - - name: cache - path: /tmp/cache + - /tmp/cache:/cache - name: build image: gradle:jdk17 @@ -37,21 +32,16 @@ steps: when: event: tag - - name: rebuild-cache-with-filesystem - image: meltwater/drone-cache:dev - pull: true + - name: restore-cache-with-filesystem + image: drillster/drone-volume-cache settings: - backend: "filesystem" rebuild: true - cache_key: "volume" - archive_format: "gzip" - debug: true - # filesystem_cache_root: "/tmp/cache" mount: - - 'vendor' + - ./build + - ./gradle + # Mount the cache volume, needs "Trusted" volumes: - - name: cache - path: /tmp/cache + - /tmp/cache:/cache volumes: