2022-06-25 10:49:41 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-06-26 16:28:27 +00:00
|
|
|
- name: restore-cache-with-filesystem
|
|
|
|
image: meltwater/drone-cache:dev
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
backend: "filesystem"
|
|
|
|
restore: true
|
|
|
|
cache_key: "volume"
|
|
|
|
archive_format: "gzip"
|
|
|
|
debug: true
|
|
|
|
# filesystem_cache_root: "/tmp/cache"
|
|
|
|
mount:
|
|
|
|
- 'vendor'
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /tmp/cache
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: gradle:jdk17
|
|
|
|
commands:
|
|
|
|
- gradle assemble --stacktrace
|
|
|
|
- ls
|
|
|
|
|
|
|
|
- name: gitea_release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.unurled.me
|
|
|
|
files: build/libs/*
|
|
|
|
api_key:
|
|
|
|
from_secret: api_key
|
|
|
|
prerelease: true
|
|
|
|
|
|
|
|
- name: rebuild-cache-with-filesystem
|
|
|
|
image: meltwater/drone-cache:dev
|
|
|
|
pull: true
|
|
|
|
settings:
|
|
|
|
backend: "filesystem"
|
|
|
|
rebuild: true
|
|
|
|
cache_key: "volume"
|
|
|
|
archive_format: "gzip"
|
|
|
|
debug: true
|
|
|
|
# filesystem_cache_root: "/tmp/cache"
|
|
|
|
mount:
|
|
|
|
- 'vendor'
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /tmp/cache
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
temp: {}
|