-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
43 lines (39 loc) · 987 Bytes
/
.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
kind: pipeline
name: default
type: docker
steps:
- name: test
image: gradle:8.9-jdk21-jammy
commands:
- export BUILD_NUMBER=${DRONE_BUILD_NUMBER}
- gradle test --no-daemon
- name: publish
image: gradle:8.9-jdk21-jammy
volumes:
- name: build-output
path: /tmp/build/
environment:
ARTEFACTS_USER:
from_secret: ARTEFACTS_USER
ARTEFACTS_PASSWORD:
from_secret: ARTEFACTS_PASSWORD
commands:
- export BUILD_NUMBER=${DRONE_BUILD_NUMBER}
- gradle --no-daemon --build-cache jlinkTar publish
- cp ./build/minimum-effort-search.tgz /tmp/build/minimum-effort-search.tgz
when:
event: tag
- name: release
image: plugins/github-release
volumes:
- name: build-output
path: /tmp/build/
settings:
api_key:
from_secret: GH_TOKEN
files: /tmp/build/minimum-effort-search.tgz
when:
event: tag
volumes:
- name: build-output
temp: {}