forked from TEAM-YOAJUNG/backend-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.bat
More file actions
36 lines (28 loc) · 840 Bytes
/
local.bat
File metadata and controls
36 lines (28 loc) · 840 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
36
@echo off
setlocal enabledelayedexpansion
:: 서비스 목록 정의 (필요에 따라 폴더명 추가)
set services=club-service api-gateway
:: 각 서비스에 대해 빌드 실행
for %%s in (%services%) do (
echo Building image for %%s...
:: 서비스별로 이미지 이름을 "서비스명-local" 형식으로 설정
set IMAGE_NAME=%%s-local
set IMAGE_TAG=latest
:: 서비스 디렉토리로 이동
cd %%s || (
echo Failed to enter directory %%s
exit /b 1
)
:: Jib 빌드 실행
call gradlew jibDockerBuild --image=!IMAGE_NAME!:!IMAGE_TAG!
:: 빌드 결과 확인
if !errorlevel! equ 0 (
echo %%s build succeeded.
) else (
echo %%s build failed.
exit /b 1
)
:: 원래 디렉토리로 복귀
cd ..
)
echo All builds completed.