forked from TheHive-Project/elastic4play
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
59 lines (52 loc) · 1.38 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
---
kind: pipeline
name: default
# Disable default clone
clone:
disable: true
steps:
# This clone step doesn't use "root" user
- name: clone
image: plugins/git:next
# Restore cache of downloaded dependencies
- name: restore-cache
image: drillster/drone-volume-cache
settings:
restore: true
mount:
- .sbt
- .ivy2
volumes: [{name: cache, path: /cache}]
# Run project tests
- name: run-tests
image: thehiveproject/drone-scala-node
commands:
- sbt -Duser.home=$PWD test
# Publish package
- name: publish-package
image: thehiveproject/drone-scala-node
settings:
bintray_user: {from_secret: bintray_user}
bintray_key: {from_secret: bintray_key}
commands:
- mkdir -p .bintray
- echo realm = Bintray API Realm > .bintray/.credentials
- echo host = api.bintray.com >> .bintray/.credentials
- echo user = $PLUGIN_BINTRAY_USER >> .bintray/.credentials
- echo password = $PLUGIN_BINTRAY_KEY >> .bintray/.credentials
- sbt -Duser.home=$PWD publish
# when:
#event: [tag]
# Save external libraries in cache
- name: save-cache
image: drillster/drone-volume-cache
settings:
rebuild: true
mount:
- .sbt
- .ivy2
volumes: [{name: cache, path: /cache}]
volumes:
- name: cache
host:
path: /opt/drone/cache