-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
87 lines (75 loc) · 1.74 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
include: "/ci-templates/gitlab/release-train.yml"
.staging: &staging
rules:
# For commits on the main branch, build for the staging environment
- if: '$CI_COMMIT_REF_NAME == "main"'
- when: manual
variables:
ENVIRONMENT: staging
CAPELLA_DOCKER_IMAGES_REVISION: "$CI_COMMIT_REF_NAME"
IMAGE_BUILDER_GITLAB_REPOSITORY: "$IMAGE_BUILDER_GITLAB_REPOSITORY"
BUILD_FOR_LATEST_TAG: "0"
DOCKER_BUILD_ARGS: "" # Enable Docker build cache
.production: &production
rules:
# For tags, build for the production environment
- if: "$CI_COMMIT_TAG != null"
variables:
ENVIRONMENT: production
CAPELLA_DOCKER_IMAGES_REVISION: "$CI_COMMIT_REF_NAME"
IMAGE_BUILDER_GITLAB_REPOSITORY: "$IMAGE_BUILDER_GITLAB_REPOSITORY"
BUILD_FOR_LATEST_TAG: "1"
production-base:
extends: .base
<<: *production
production-jupyter:
extends: .jupyter
needs:
- job: production-base
optional: true
<<: *production
production-capella:
extends: .capella
needs:
- job: production-base
optional: true
<<: *production
production-papyrus:
extends: .papyrus
needs:
- job: production-base
optional: true
<<: *production
production-eclipse:
extends: .eclipse
needs:
- job: production-base
optional: true
<<: *production
staging-base:
extends: .base
<<: *staging
staging-jupyter:
extends: .jupyter
needs:
- job: staging-base
optional: true
<<: *staging
staging-capella:
extends: .capella
needs:
- job: staging-base
optional: true
<<: *staging
staging-papyrus:
extends: .papyrus
needs:
- job: staging-base
optional: true
<<: *staging
staging-eclipse:
extends: .eclipse
needs:
- job: staging-base
optional: true
<<: *staging