-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-cli.yml
More file actions
35 lines (33 loc) · 779 Bytes
/
.gitlab-cli.yml
File metadata and controls
35 lines (33 loc) · 779 Bytes
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
stages:
- build
build_BE:
stage: build
image: gradle:8.8-jdk21
before_script:
- echo "[INFO] YML Settings"
- chmod +x backend/gradlew
script:
- cd backend
- ./gradlew clean build -x test -Dspring.profiles.active=prod
- cp build/libs/melting-0.0.1-SNAPSHOT.jar ~/melting/spring-docker
- sh ~/melting/spring-docker/spring.sh
rules:
- if: '$CI_COMMIT_BRANCH == "dev-be"'
tags:
- prod
build_FE:
stage: build
image: node
before_script:
- echo "[INFO] YML Settings"
- cd frontend/melting
- printenv | grep 'VITE_' > .env
script:
- yarn install
- yarn build
- sudo cp -R dist ~/melting/melting-fe
- sh ~/melting/melting-fe/react.sh
rules:
- if: '$CI_COMMIT_BRANCH == "dev-fe"'
tags:
- prod