Skip to content

Commit

Permalink
Feat: Actuator 의존성 추가 및 헬스체크 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
tioon committed Jul 1, 2024
1 parent 038fc3e commit 77cc599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 77cc599

Please sign in to comment.