do not use cache

This commit is contained in:
Torma Kristóf 2020-05-22 03:30:12 +02:00
parent 63f7865f7c
commit c61620753b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -3,42 +3,11 @@ type: docker
name: default name: default
steps: steps:
- name: restore-cache-with-filesystem git ad- name: build_application
image: meltwater/drone-cache
settings:
backend: "filesystem"
restore: true
cache_key: "{{ .Repo.Name }}"
archive_format: "gzip"
filesystem_cache_root: "/tmp/cache"
mount:
- 'build'
- '.gradle'
volumes:
- name: cache
path: /tmp/cache
- name: build_application
image: openjdk:11-jdk image: openjdk:11-jdk
commands: commands:
- ./gradlew build -x test - ./gradlew build -x test
- name: rebuild-cache-with-filesystem
image: meltwater/drone-cache:dev
pull: true
settings:
backend: "filesystem"
rebuild: true
cache_key: "{{ .Repo.Name }}"
archive_format: "gzip"
filesystem_cache_root: "/tmp/cache"
mount:
- 'build'
- '.gradle'
volumes:
- name: cache
path: /tmp/cache
- name: kaniko - name: kaniko
image: banzaicloud/drone-kaniko image: banzaicloud/drone-kaniko
settings: settings:
@ -51,18 +20,3 @@ steps:
tags: tags:
- latest - latest
- ${DRONE_BUILD_NUMBER} - ${DRONE_BUILD_NUMBER}
- name: send telegram notification
image: appleboy/drone-telegram
settings:
token:
from_secret: TELEGRAM_TOKEN
to:
from_secret: TELEGRAM_TO_ID
when:
status: [ failure ]
volumes:
- name: cache
host:
path: "/tmp/cache"