Skip to content

Commit f75cd0e

Browse files
committed
fix:[ci/cd]: Qdrant 추가
1 parent dc4eaf7 commit f75cd0e

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/CI-CD_Pipeline.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
env:
4343
REDIS_PASSWORD: ""
4444

45+
# ✅ Qdrant 서비스 추가
46+
qdrant:
47+
image: qdrant/qdrant:v1.3.1
48+
ports:
49+
- 6333:6333
50+
- 6334:6334
51+
4552
steps:
4653
- uses: actions/checkout@v4
4754
- name: Set up JDK 21
@@ -62,6 +69,13 @@ jobs:
6269
timeout 10s bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/localhost/6379; do sleep 1; done'
6370
echo "Redis is ready!"
6471
72+
# ✅ Qdrant 연결 테스트
73+
- name: Wait for Qdrant
74+
run: |
75+
echo "Waiting for Qdrant to be ready..."
76+
timeout 40s bash -c 'until curl -sSf http://localhost:6333/collections >/dev/null; do sleep 1; done'
77+
echo "Qdrant is ready!"
78+
6579
# ✅ application-test.yml에서 사용하는 모든 환경변수를 .env 파일에 생성
6680
- name: Create test .env file
6781
working-directory: backend
@@ -85,6 +99,10 @@ jobs:
8599
TEST_REDIS_PORT=6379
86100
TEST_REDIS_PASSWORD=
87101
102+
# Qdrant
103+
TEST_QDRANT_HOST=localhost
104+
TEST_QDRANT_PORT=6333
105+
88106
# CI/CD 환경에서는 Embedded Redis 끄기
89107
SPRING_DATA_REDIS_EMBEDDED=false
90108
@@ -228,7 +246,7 @@ jobs:
228246
set -xe
229247
echo "===== 현재 실행 중인 컨테이너 ====="
230248
docker ps -a || true
231-
249+
232250
echo "===== 기존 컨테이너 종료 & 제거 ====="
233251
docker stop app1 2>/dev/null || true
234252
docker rm app1 2>/dev/null || true

0 commit comments

Comments
 (0)