-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (49 loc) · 1.88 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
53
54
include:
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/maven-building-functional-unit.yml'
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/license-listing.yml'
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/packaging.yml'
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/deployment-functional-unit.yml'
stages:
- build-lib
- build-service
- license-list
- package
- test-package
- deploy
variables:
DOCKER_BUILD_ARGS: --build-arg PARENT_IMAGE_NAME=${REDMIC_SERVER_IMAGE_NAME} --build-arg PARENT_IMAGE_TAG=${REDMIC_SERVER_IMAGE_TAG}
STACK: time-series
LOGGING_LEVEL_ROOT: error
LOGGING_LEVEL_ORG_SPRINGFRAMEWORK: error
LOGGING_LEVEL_ES_REDMIC: error
maven-build-view:
variables:
GIT_SUBMODULE_STRATEGY: normal
before_script:
- mvn -f elasticsearch-cluster-runner compile
- mvn -f elasticsearch-cluster-runner exec:java -Dexec.args="-numOfNode 1 -clusterName ${ELASTIC_CLUSTERNAME}" &
.deploy-commands:
script:
- >
deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE}
SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE} OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET} PUBLIC_HOSTNAME=${PUBLIC_HOSTNAME}
environment:
url: https://${PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/commands
.deploy-view:
script:
- >
deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE}
SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE} OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID}
OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET} ELASTIC_CLUSTERNAME=${ELASTIC_CLUSTERNAME}
ELASTIC_USER=${ELASTIC_USER} ELASTIC_PASSWORD=${ELASTIC_PASSWORD} PUBLIC_HOSTNAME=${PUBLIC_HOSTNAME}
environment:
url: https://${PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}/view