-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
50 lines (45 loc) · 1007 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
44
45
46
47
48
49
kind: pipeline
type: kubernetes
name: default
steps:
- name: build
image: gradle:jdk8
environment:
INDICO_TEST_TOKEN:
from_secret: indico_test_token
commands:
- ./test.sh
- name: stage
image: gradle:jdk8
when:
branch:
- master
event:
- push
environment:
SONATYPE_GPG_KEYID:
from_secret: sonatype_gpg_keyid
SONATYPE_USERNAME:
from_secret: sonatype_username
SONATYPE_GPG_KEY:
from_secret: sonatype_gpg_key
SONATYPE_GPG_PASSWORD:
from_secret: sonatype_gpg_password
SONATYPE_PASSWORD:
from_secret: sonatype_password
commands:
- apt-get update && apt-get install --yes --no-install-recommends gnupg2
- chmod +x ./build.sh
- ./build.sh
- name: deploy
image: gradle:jdk8
when:
event:
- promote
target:
- production
commands:
- apt-get update && apt-get install --yes --no-install-recommends gnupg2
- chmod +x ./build.sh
- ./build.sh
- ./gradlew closeAndReleaseStagingRepository