-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
40 lines (35 loc) · 1.01 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
include:
- project: 'redmic-project/gitlab-ci-templates'
ref: master
file: '/maven-building-microservice.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.yml'
stages:
- build
- 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: security-manager
.deploy:
script:
- >
deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} COMPOSE_FILE=${COMPOSE_FILE}
SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE}
environment:
url: https://${PUBLIC_HOSTNAME}/api/${CI_PROJECT_NAME}
.deploy-development:
variables:
SPRING_PROFILES_ACTIVE: pre
.deploy-production:
variables:
SPRING_PROFILES_ACTIVE: prod