-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
81 lines (71 loc) · 1.46 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
include:
- file: projects/.build_static.yml
project: seqtreat/output-2/tbkb-pipelines
ref: main
- file: projects/.deploy_static.yml
project: seqtreat/output-2/tbkb-pipelines
ref: main
- template: Security/SAST.gitlab-ci.yml
variables:
FF_NETWORK_PER_BUILD: "1" # allow service containers to reach each other
DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2
REACT_APP_NODE_ENV: "development"
TSC_COMPILE_ON_ERROR: "true"
ESLINT_NO_DEV_ERRORS: "true"
API_VERSION: "v1"
stages:
- test
- testing
- build_static
- deploy_static
sast:
stage: test
eslint:
stage: test
image: node:17.4.0
script:
- npm install eslint
- ./node_modules/.bin/eslint .
testing:
stage: testing
image: node:17.4.0
script:
- npm install
- npm test
build_static_prod-f4:
stage: build_static
extends:
- .build_static_frontend
artifacts:
paths:
- build/
expire_in: 1 day
environment: prod-f4
deploy_static_prod-f4:
stage: deploy_static
extends:
- .deploy_static_frontend
dependencies:
- build_static_prod-f4
needs:
- build_static_prod-f4
environment: prod-f4
build_static_test-sec:
stage: build_static
extends:
- .build_static_frontend
artifacts:
paths:
- build/
expire_in: 1 day
environment: test-sec
deploy_static_test-sec:
stage: deploy_static
extends:
- .deploy_static_frontend
dependencies:
- build_static_test-sec
needs:
- build_static_test-sec
environment: test-sec