-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
42 lines (34 loc) · 1.06 KB
/
.gitlab-ci.yml
File metadata and controls
42 lines (34 loc) · 1.06 KB
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
image: eclipse-temurin:11
stages:
- test
- deploy
variables:
GRADLE_ARGS: --no-daemon --stacktrace --warning-mode=all
DEBIAN_FRONTEND: noninteractive
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- apt-get update && apt-get install -y git
.tests:
stage: test
script:
- ./gradlew ${GRADLE_ARGS} check
tests:jdk-11:
extends: .tests
tests:jdk-17:
extends: .tests
image: eclipse-temurin:17
tests:jdk-21:
extends: .tests
image: eclipse-temurin:21
publish:
stage: deploy
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
- apt-get update && apt-get install -y git
- 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
script:
- ./gradlew ${GRADLE_OPTIONS} publish closeStagingRepositories
only:
- main@stups/prob/xml2b