diff --git a/.github/workflows/deploy-prod.yaml b/.github/workflows/deploy-prod.yaml index efb38b8..eab510f 100644 --- a/.github/workflows/deploy-prod.yaml +++ b/.github/workflows/deploy-prod.yaml @@ -86,7 +86,7 @@ jobs: sleep 10 # 헬스 체크를 통해 새 컨테이너가 정상적으로 실행 중인지 확인 - until [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:$NEW_PORT)" == "200" || "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:$NEW_PORT)" == "404" ]]; do + until [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:$NEW_PORT/actuator/health)" == "200"]]; do echo "Waiting for the new container to respond with HTTP 200 or 404..." sleep 2 done diff --git a/build.gradle b/build.gradle index 90dbf9e..0a2a3d4 100644 --- a/build.gradle +++ b/build.gradle @@ -49,6 +49,9 @@ dependencies { implementation 'org.mapstruct:mapstruct:1.5.3.Final' annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.3.Final' + // Spring Boot Actuator + implementation 'org.springframework.boot:spring-boot-starter-actuator' + // GPT 스크립트 테스트 편의성을 위해 추가 testAnnotationProcessor 'org.projectlombok:lombok' testImplementation 'com.theokanning.openai-gpt3-java:service:0.18.2'