-
Notifications
You must be signed in to change notification settings - Fork 9
/
.drone.yml
60 lines (56 loc) · 1.39 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
pipeline:
clone:
image: plugins/git
tags: true
recursive: true
submodule_override:
wiki: https://github.com/scalacenter/sbt-release-early.wiki.git
sftp_cache:
image: plugins/sftp-cache
restore: true
ignore_branch: true
when:
event: [ push, pull_request, deployment ]
mount:
- /drone/.ivy2
- /drone/.coursier
- /drone/.sbt
- /drone/.git
build:
image: scalacenter/scala:1.3
volumes:
- /fake-scalacenter:/keys
environment:
- DRONE_DIR=/drone
commands:
- git log | head -n 20
- /usr/local/bin/setup_keys.sh
- /usr/local/bin/store_credentials.sh
- sbt clean scripted
publish:
# Mount from an identical image but with different id
# so that sonatype environment variables are not accessible
image: scalacenter/scala-publish:1.3
volumes:
- /scalacenter:/keys
when:
event: [ push, tag, deployment ]
status: success
environment:
- DRONE_DIR=/drone
commands:
- git log | head -n 20
- /usr/local/bin/setup_keys.sh
- /usr/local/bin/store_credentials.sh
- sbt releaseEarly
sftp_cache:
image: plugins/sftp-cache
rebuild: true
when:
status: [ success, failure ]
event: [ push, pull_request, deployment ]
mount:
- /drone/.ivy2
- /drone/.coursier
- /drone/.sbt
- /drone/.git