-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
46 lines (43 loc) · 976 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
kind: pipeline
type: docker
name: build
steps:
- name: build jar
image: openjdk:14-jdk-slim
volumes:
- name: cache_m2
path: /root/.m2/repository
commands:
- ./mvnw package -Dmaven.test.skip=true -B
- name: build and push docker image
image: plugins/docker
volumes:
- name: docker_sock
path: /var/run/docker.sock
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: crowdsalat/kvb-rad
tags:
- ${DRONE_TAG}
- latest
- name: start application
image: docker/compose
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- docker-compose pull
- docker-compose up -d --no-deps --remove-orphans
volumes:
- name: cache_m2
host:
path: /tmp/drone/cache/m2/repository
- name: docker_sock
host:
path: /var/run/docker.sock
trigger:
event:
- tag