-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
60 lines (53 loc) · 1.7 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
include:
- project: 'city-of-helsinki/kuva/ci-cd-config/ci-configuration'
ref: v2
file: '/.gitlab-ci-template.yml'
variables:
SERVICE_PORT: 80
build-review:
# These variables are available only for review env and are merged with the general variables defined above.
extends: .build
variables:
DOCKER_IMAGE_NAME: "$CI_PROJECT_NAME-review"
DOCKER_BUILD_ARG_REACT_APP_ENVIRONMENT: 'review'
DOCKER_BUILD_ARG_REACT_APP_OIDC_AUTHORITY: "https://api.hel.fi/sso-test/"
DOCKER_BUILD_ARG_REACT_APP_PROFILE_GRAPHQL: "https://profiili-api.test.kuva.hel.ninja/graphql/"
only:
refs:
- external_pull_requests
build-staging:
extends: .build
variables:
DOCKER_IMAGE_NAME: "$CI_PROJECT_NAME-staging"
DOCKER_BUILD_ARG_REACT_APP_ENVIRONMENT: 'staging'
DOCKER_BUILD_ARG_REACT_APP_OIDC_AUTHORITY: "https://api.hel.fi/sso-test/"
DOCKER_BUILD_ARG_REACT_APP_PROFILE_GRAPHQL: "https://profiili-api.test.kuva.hel.ninja/graphql/"
only:
refs:
- develop
build-production:
extends: .build
variables:
DOCKER_IMAGE_NAME: "$CI_PROJECT_NAME-production"
DOCKER_BUILD_ARG_REACT_APP_ENVIRONMENT: 'production'
DOCKER_BUILD_ARG_REACT_APP_OIDC_AUTHORITY: "https://api.hel.fi/sso/"
DOCKER_BUILD_ARG_REACT_APP_PROFILE_GRAPHQL: "https://api.hel.fi/profiili/graphql/"
only:
refs:
- master
# this regexp will match release-tags
- /^release-.*$/
review:
variables:
DOCKER_IMAGE_NAME: "$CI_PROJECT_NAME-review"
POSTGRES_ENABLED: 0
# This will enable staging ci-pipeline
staging:
variables:
DOCKER_IMAGE_NAME: "$CI_PROJECT_NAME-staging"
only:
refs:
- develop
production:
variables:
DOCKER_IMAGE_NAME: "$CI_PROJECT_NAME-production"