forked from elexis/elexis-3-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
31 lines (29 loc) · 1002 Bytes
/
.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
# Build script used by gitlab.medelexis.ch
stages:
- build
- trigger_other_builds
build:
stage: build
tags:
- java17
- maven
script:
- kill `ps aux | grep xvfb-run | grep -v grep | awk '{print $2}'` || true
- xvfb-run mvn clean verify -Dgit.core.branch=$CI_COMMIT_REF_NAME
- 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