-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackend.yaml
53 lines (53 loc) · 1.51 KB
/
backend.yaml
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
# back end api 통해서 배포할때 쓰일 yaml 정보입니다.
# yaml 정보에 있는 약어들은 배포진행될때 치환되어 데이터가 넣어집니다.
global-config:
version: "1.1"
id: "[[UserId]]"
ci-config:
used: true
build-type: buildx
remote-uri: "[[DockerRegistryUri]]"
user-name: "[[DockerRegistryUserName]]"
pass-word: "[[DockerRegistryPassword]]"
cd-config:
namespace-name: "[[NamespaceName]]"
docker-list:
- name: restapi
image: "[[DockerRegistryUri]]/[[NamespaceName]].[[UserId]]-restapi:0.0.1"
ports:
- number: 8080
protocol: TCP
is-external-open: true
- name: postgres-db
image: "postgres:15.3"
ports:
- number: 5432
protocol: TCP
is-external-open: true
environment:
- name: POSTGRES_PASSWORD
value: test-1
ci-build:
work-list:
- id: restapi
tag: 0.0.1
ports:
- 8080
run: '"java","-jar","/app/app.jar"'
run-type: ENTRYPOINT
build-units:
- name: build
image: maven:3.8.1-openjdk-17-slim
work-dir: /source
copy:
- .
run-command:
- mvn -f pom.xml clean package -Dmaven.test.skip=true
- name: final
image: openjdk:17-jdk-slim # 17 jre 못찾겠음.
work-dir: /app
copy-from-worker:
name : build
dir: /source/target
etc-command:
- COPY --from=build-img /source/target/*SNAPSHOT.jar app.jar