Skip to content

Commit 18781f7

Browse files
committed
RM-3487: add gitlab CI file
1 parent b2112bc commit 18781f7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.gitlab-ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
stages:
2+
- publish
3+
4+
publish:
5+
stage: publish
6+
image: maven:3.8.8-eclipse-temurin-17
7+
script: mvn deploy -s $MAVEN_SETTINGS
8+
cache:
9+
key: "$CI_COMMIT_REF_NAME"
10+
paths:
11+
- .m2/repository
12+
rules:
13+
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
14+
when: on_success
15+
- if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+\-release/' # A specific tag with 'vX.Y.Z-release' pattern is created
16+
- when: never
17+
# release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
18+
# tag_name: '$CI_COMMIT_TAG'
19+
# description: '$CI_COMMIT_TAG'

0 commit comments

Comments
 (0)