update drone-ci
This commit is contained in:
parent
e93440886c
commit
ed11a10659
1 changed files with 11 additions and 21 deletions
32
.drone.yml
32
.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:
|
||||
|
|
Loading…
Reference in a new issue