-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
executable file
·65 lines (57 loc) · 1.22 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
kind: pipeline
name: default
type: docker
steps:
- name: build
image: maven
commands:
- mvn clean install
- mvn checkstyle:check
volumes:
- name: maven-repo
path: /root/.m2
# DEPLOY
- name: get-version
image: maven
commands:
- mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed -e 's,-SNAPSHOT,,g' > /root/version
volumes:
- name: shared
path: /root
when:
branch:
- master
event:
- push
- name: tag
image: docker:git
commands:
# configure git
- git remote set-url origin git@github.com:levimdmiller/sms-bridge.git
# create tag
- git tag v`cat /root/version`
- git push origin v`cat /root/version`
volumes:
- name: shared
path: /root
when:
branch:
- master
event:
- push
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
# files: target/sms-bridge*
when:
event:
- tag
volumes:
- name: maven-repo
host:
path: /root/.m2
- name: shared
host:
path: /root