-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (44 loc) · 1.2 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# image: openjdk:17 # openjdk:* is deprecated! See https://hub.docker.com/_/openjdk
## we use a proxied docker image in order to not run into a pull rate limit
image: harbor.uni-muenster.de/proxy-docker/library/eclipse-temurin:17-alpine
cache:
paths:
- ~/.m2/repository
stages:
- test
- deploy
.release_rules:
rules:
- if: $CI_COMMIT_TAG =~ /^\d+.\d+.\d+/ # describe how your version tags look like!
# Verify merge requests
test:
stage: test
script:
- ./mvnw verify
# deploy using ci_settings.xml as maven settings
# see https://gitlab.com/help/user/packages/maven_repository/index.md#creating-maven-packages-with-gitlab-cicd-using-maven
push-packages:
stage: deploy
script:
- ./mvnw -Drevision=$CI_COMMIT_TAG -Dchangelist="" package
- ./mvnw -Drevision=$CI_COMMIT_TAG -Dchangelist="" deploy -s ci_settings.xml
artifacts:
paths:
- target
# - edition/target
# - processing/target
rules:
- !reference [ .release_rules, rules ]
pages:
stage: deploy
script:
- mkdir -p public
- ls -la
- cp target/archetype-catalog.xml public/
needs:
- push-packages
artifacts:
paths:
- public
rules:
- !reference [ .release_rules, rules ]