Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/dev-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
KAMIS_ID: ${{ secrets.KAMIS_ID }}
ADMIN_API_KEY: ${{ secrets.ADMIN_API_KEY }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
ACTUATOR_PORT: 9000
Comment thread
23tae marked this conversation as resolved.
run: |
set -euo pipefail # 스크립트 오류 발생 시 즉시 중단

Expand All @@ -97,6 +98,7 @@ jobs:

# 4. 새 컨테이너 실행
docker run -d --name $CONTAINER_NAME -p $HOST_PORT:8080 --restart always \
-p $ACTUATOR_PORT:9000 \
-e SPRING_PROFILES_ACTIVE=dev \
-e DB_URL="$DB_URL" \
-e DB_USERNAME="$DB_USERNAME" \
Expand All @@ -116,7 +118,7 @@ jobs:
echo "Waiting for application health check..."
sleep 15
for i in {1..12}; do
response=$(curl --max-time 5 -s -o /dev/null -w '%{http_code}' http://localhost:$HOST_PORT/actuator/health || true)
response=$(curl --max-time 5 -s -o /dev/null -w '%{http_code}' http://localhost:$ACTUATOR_PORT/actuator/health || true)
if [ "$response" = "200" ]; then
echo "🚀 Health check PASSED. Deployment successful!"
exit 0
Expand Down
11 changes: 0 additions & 11 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,3 @@ sentry:
traces-sample-rate: 1.0
send-default-pii: true
enabled: true

management:
endpoints:
web:
exposure:
include: "health,prometheus"
server:
port: 9000
metrics:
tags:
application: ${spring.application.name}
11 changes: 11 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@ spring:

admin:
api-key: ${ADMIN_API_KEY}

management:
endpoints:
web:
exposure:
include: "health,prometheus"
server:
port: 9000
metrics:
tags:
application: ${spring.application.name}