forked from elexis/elexis-3-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
33 lines (31 loc) · 1.16 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
# Build script used by gitlab.medelexis.ch
variables:
TARGET: "2023-09-java17"
DOCKER_BUILD_IMAGE: "gitlab.medelexis.ch:4567/elexis/docker-build:${TARGET}"
stages:
- build
- trigger_other_builds
build:
stage: build
tags:
- docker-host
script:
- docker pull ${DOCKER_BUILD_IMAGE}
- docker run --rm --init -v "$(pwd)":/usr/src/mymaven -v "/home/maven/m2-$CI_COMMIT_REF_NAME":/root/.m2 -w /usr/src/mymaven ${DOCKER_BUILD_IMAGE} xvfb-run mvn -V clean install
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY_ED25519_BASE64" | base64 -d)
- rsync -aiv --delete --mkpath -e ssh ch.elexis.base.p2site/target/repository/ [email protected]:download.elexis.info/elexis/$CI_COMMIT_REF_NAME/p2/elexis-3-base/
- eval $(ssh-agent -k)
only:
- master@elexis/elexis-3-base
- /^\d*[.]\d*$/@elexis/elexis-3-base
- /^[bf]\d*$/@elexis/elexis-3-base
trigger_medelexis-3-application_build:
stage: trigger_other_builds
trigger:
project: medelexis-core/medelexis-3-application
branch: $CI_COMMIT_REF_NAME
only:
- master@elexis/elexis-3-base
- /^\d*[.]\d*$/@elexis/elexis-3-base
- /^[bf]\d*$/@elexis/elexis-3-base