forked from yegor256/cactoos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
29 lines (29 loc) · 1009 Bytes
/
.rultor.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
docker:
image: g4s8/rultor:alpine3.10
assets:
settings.xml: yegor256/home#assets/cactoos/settings.xml
pubring.gpg: yegor256/home#assets/pubring.gpg
secring.gpg: yegor256/home#assets/secring.gpg
architect:
- victornoel
- yegor256
merge:
script: |
pdd -f /dev/null
mvn clean install -Pqulice --errors --settings ../settings.xml
mvn clean site -Psite --errors --settings ../settings.xml
deploy:
script: |
pdd -f /dev/null
mvn clean deploy -Pqulice --errors --settings ../settings.xml
release:
sensitive:
- settings.xml
script: |-
[[ "${tag}" =~ ^[0-9]+(\.[0-9]+)*$ ]] || exit -1
gpg --import /home/r/pubring.gpg
gpg --allow-secret-key-import --no-tty --batch --import /home/r/secring.gpg
mvn versions:set "-DnewVersion=${tag}" --settings ../settings.xml
git commit -am "${tag}"
# note: -Pcactoos is needed to have the gpg and sonar secrets injected
mvn clean deploy -Psonar -Pcactoos -Pqulice -Psonatype --errors --settings ../settings.xml