This commit is contained in:
parent
03df50a4fa
commit
92401f69cb
81
.drone.yml
81
.drone.yml
@ -3,28 +3,63 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build_application
|
- name: restore-cache-with-filesystem
|
||||||
image: openjdk:8-jdk
|
image: meltwater/drone-cache
|
||||||
commands:
|
settings:
|
||||||
- ./gradlew build -x test
|
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: kaniko
|
- name: build_application
|
||||||
image: banzaicloud/drone-kaniko
|
image: openjdk:8-jdk
|
||||||
settings:
|
commands:
|
||||||
registry: registry.kmlabz.com
|
- ./gradlew build -x test
|
||||||
repo: birbnetes/${DRONE_REPO_NAME}
|
|
||||||
username:
|
|
||||||
from_secret: DOCKER_USERNAME
|
|
||||||
password:
|
|
||||||
from_secret: DOCKER_PASSWORD
|
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- ${DRONE_BUILD_NUMBER}
|
|
||||||
|
|
||||||
- name: ms-teams
|
- name: rebuild-cache-with-filesystem
|
||||||
image: kuperiu/drone-teams
|
image: meltwater/drone-cache:dev
|
||||||
settings:
|
pull: true
|
||||||
webhook:
|
settings:
|
||||||
from_secret: TEAMS_WEBHOOK
|
backend: "filesystem"
|
||||||
when:
|
rebuild: true
|
||||||
status: [ failure ]
|
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:
|
||||||
|
- name: cache
|
||||||
|
temp: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user