2020-04-04 18:47:24 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2020-05-06 15:21:07 +02:00
|
|
|
- name: restore-cache-with-filesystem
|
|
|
|
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
|
2020-04-04 18:47:24 +02:00
|
|
|
|
2020-05-06 15:21:07 +02:00
|
|
|
- name: build_application
|
2020-05-20 15:16:29 +02:00
|
|
|
image: openjdk:11-jdk
|
2020-05-06 15:21:07 +02:00
|
|
|
commands:
|
|
|
|
- ./gradlew build -x test
|
2020-04-28 17:42:38 +02:00
|
|
|
|
2020-05-06 15:21:07 +02:00
|
|
|
- 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
|
|
|
|
image: banzaicloud/drone-kaniko
|
|
|
|
settings:
|
|
|
|
registry: registry.kmlabz.com
|
|
|
|
repo: birbnetes/${DRONE_REPO_NAME}
|
|
|
|
username:
|
|
|
|
from_secret: DOCKER_USERNAME
|
|
|
|
password:
|
|
|
|
from_secret: DOCKER_PASSWORD
|
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- ${DRONE_BUILD_NUMBER}
|
|
|
|
|
|
|
|
- name: ms-teams
|
|
|
|
image: kuperiu/drone-teams
|
|
|
|
settings:
|
|
|
|
webhook:
|
|
|
|
from_secret: TEAMS_WEBHOOK
|
|
|
|
when:
|
|
|
|
status: [ failure ]
|
|
|
|
|
|
|
|
volumes:
|
2020-05-08 22:38:25 +02:00
|
|
|
- name: cache
|
|
|
|
host:
|
|
|
|
path: "/tmp/cache"
|