-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci-frontend.yml
47 lines (40 loc) · 953 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
include:
- project: "mpib/chm/common/deploy-pipeline"
ref: "1.5.3"
file: 'common.yml'
variables:
APP_NAME: creative-ai-app-frontend
WEB_PORT: 3000
REPLICA_COUNT: 1
stages:
- init
- docker
- deploy
- undeploy
init:
extends: .init-stage
script:
- apk add --no-cache git
- source deploy-pipeline/build_env.sh
- deploy-pipeline/display_env.sh
after_script:
- cp -r $CHILD_PIPELINE_EXECUTION_CONTEXT/* ./
- rm -rf stories
- rm -rf .storybook
- rm -rf frontend
- rm -rf backend
- echo "NEXT_PUBLIC_BACKEND_API=wss://creative-ai-app-backend.eks-test-default.mpg-chm.com/ws/" >>build.env
- cat build.env
# - ls -R
artifacts:
paths:
- ./
docker:
extends: .docker-stage
before_script:
- rm -rf frontend
- rm -rf backend
- ls -R
deploy-prod: { extends: .deploy-prod-stage }
deploy-dev: { extends: .deploy-dev-stage }
undeploy: { extends: .undeploy-stage }