-
Notifications
You must be signed in to change notification settings - Fork 0
/
.woodpecker.yml
44 lines (39 loc) · 1.14 KB
/
.woodpecker.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
pipeline:
load-cache:
image: drillster/drone-volume-cache
volumes: [/tmp:/cache]
restore: true
mount:
- .gradle/caches
- .gradle/wrapper
- hale
build:
image: eclipse-temurin:17-jdk
commands:
- export GRADLE_USER_HOME=$${DRONE_WORKSPACE}/.gradle
- export JDK_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED" # for Parboiled + Java17
- ./gradlew build
when:
event: [push,tag]
updatesite:
image: eclipse-temurin:17-jdk
commands:
- export GRADLE_USER_HOME=$${DRONE_WORKSPACE}/.gradle
- export JDK_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED" # for Parboiled + Java17
- ./gradlew updatesite
when:
event: [tag]
publish:
image: plugins/gh-pages:1.3.2
pages_directory: build/public/
secrets: [ github_username, github_password]
when:
event: [tag]
save-cache:
image: drillster/drone-volume-cache
volumes: [/tmp:/cache]
rebuild: true
mount:
- .gradle/caches
- .gradle/wrapper
- hale