-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
36 lines (33 loc) · 1 KB
/
.gitlab-ci.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
variables:
DEBIAN_FRONTEND: noninteractive
GRADLE_OPTIONS: --info --stacktrace --warning-mode=all
default:
image: eclipse-temurin:11
cache:
paths:
- .gradle/caches
- .gradle/native
- .gradle/wrapper
before_script:
- apt-get update
- export GRADLE_USER_HOME="${PWD}/.gradle"
tests:
stage: test
script: ./gradlew ${GRADLE_ARGS} check
artifacts:
paths:
- build/reports/tests/
when: on_failure
publish:
stage: deploy
script:
- openssl aes-256-cbc -d -base64 -pbkdf2 -pass "env:ENCRYPTION_PASSWORD" -in gradle.properties.enc -out gradle.properties
- openssl aes-256-cbc -d -base64 -pbkdf2 -pass "env:ENCRYPTION_PASSWORD" -in pubring.gpg.enc -out pubring.gpg
- openssl aes-256-cbc -d -base64 -pbkdf2 -pass "env:ENCRYPTION_PASSWORD" -in secring.gpg.enc -out secring.gpg
- ./gradlew ${GRADLE_ARGS} publish
only:
variables:
- $CI_COMMIT_REF_NAME == "master"
- $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+-stable$/
except:
- tags