-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
75 lines (74 loc) · 1.85 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
66
67
68
69
70
71
72
73
74
75
kind: pipeline
name: checks
steps:
- name: restore
image: homerovalle/drone-gcs-cache
settings:
bucket: hawk-ci
json_key:
from_secret: gcs_cache_json_key
restore: true
path: hawk-ci/regnum-ci/cache
- name: compile
image: openjdk:12-jdk-oraclelinux7
environment: &gradle
GRADLE_USER_HOME: ".gradle"
GRADLE_CLI_OPTS: -Dorg.gradle.daemon=false
commands:
- ./gradlew $GRADLE_CLI_OPTS compileJava compileKotlin
- name: dokka
image: openjdk:12-jdk-oraclelinux7
environment: *gradle
commands:
- ./gradlew $GRADLE_CLI_OPTS dokka
when: &release
branch:
- master
event:
exclude:
- pull_request
- name: publish_docs
image: plugins/gh-pages
settings:
username: SchlaubiBot
password:
from_secret: github_password
pages_directory: public/
when: *release
- name: build_artifacts
image: openjdk:12-jdk-oraclelinux7
environment: *gradle
when: *release
commands:
- ./gradlew $GRADLE_CLI_OPTS buildArtifacts
- name: artifacts_deploy
image: plugins/gcs
settings:
acl: allUsers:READER
source: build/artifacts/
target: hawk-ci/regnum-ci/artifacts
token:
from_secret: gcs_cache_json_key
when: *release
- name: bintray
image: openjdk:12-jdk-oraclelinux7
environment:
<<: *gradle
BINTRAY_USER:
from_secret: bintray_user
BINTRAY_KEY:
from_secret: bintray_key
when: *release
commands:
- ./gradlew $GRADLE_CLI_OPTS bintrayUpload bintrayPublish
- name: rebuild
image: homerovalle/drone-gcs-cache
settings:
bucket: hawk-ci
json_key:
from_secret: gcs_cache_json_key
rebuild: true
path: hawk-ci/regnum-ci/cache
mount:
- .gradle/wrapper
- .gradle/caches