Skip to content

Commit b928483

Browse files
committed
Infra: 배포 자동화 테스트
- API 문서 title 변경
1 parent 4764890 commit b928483

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,15 @@ jobs:
8888
working-directory: /
8989
comment: Deploy
9090
command: |
91+
# 1. 최신 이미지 pull
9192
docker pull ghcr.io/${{ env.OWNER_LC }}/catfe-backend:latest
93+
94+
# 2. 기존 컨테이너 종료 및 제거
9295
docker stop catfe-backend 2>/dev/null
9396
docker rm catfe-backend 2>/dev/null
94-
docker run -d --name catfe-backend -p 8080:8080 ghcr.io/${{ env.OWNER_LC }}/catfe-backend:latest
97+
98+
# 3. 새로운 컨테이너 실행
99+
docker run -d --name catfe-backend -p 8080:8080 ghcr.io/${{ env.OWNER_LC }}/catfe-backend:latest
100+
101+
# 4. dangling 이미지 삭제
102+
docker rmi $(docker images -f "dangling=true" -q)

src/main/java/com/back/global/config/SpringDocConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.springframework.context.annotation.Configuration;
88

99
@Configuration
10-
@OpenAPIDefinition(info = @Info(title = "Catfe API 서버", version = "beta", description = "Catfe API 문서입니다."))
10+
@OpenAPIDefinition(info = @Info(title = "Catfe API Server", version = "beta", description = "Catfe API 문서입니다."))
1111
public class SpringDocConfig {
1212

1313
// API 버전별 그룹화

0 commit comments

Comments
 (0)