-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci-frontend.yml
54 lines (44 loc) · 945 Bytes
/
.gitlab-ci-frontend.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
variables:
APP_NAME: rn-iii-frontend
BACKEND_URL: https://rn-iii-backend.eks-test-default.mpg-chm.com
include:
- project: "mpib/chm/common/deploy-pipeline"
ref: "1.5.4"
file: "react-app.yml"
init:
extends: .init-stage
after_script:
- cp -r $CHILD_PIPELINE_EXECUTION_CONTEXT/* ./
- rm -rf frontend
- rm -rf backend
# - ls -R
artifacts:
paths:
- ./
# Replace the build stage from the template `react-app.yml`
# https://gitlab.gwdg.de/mpib/chm/common/deploy-pipeline/-/blob/master/react-app.yml
build:
stage: build
extends:
- .tags
- .services
image: node:16
cache:
paths:
- node_modules/
artifacts:
paths:
- dist/
expire_in: 1 week
before_script:
- rm -rf frontend
- rm -rf backend
script:
- npm install
- npm run build-prod
docker:
extends: .docker-stage
before_script:
- rm -rf frontend
- rm -rf backend
- ls -R