Skip to content

Commit 7d97388

Browse files
committed
feat/OPS-392: CI 워크플로우에 ElasticSearch 서비스 컨테이너 생성 로직 추가.
1 parent d68640b commit 7d97388

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/test-server-ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ jobs:
2323
env:
2424
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
2525

26-
27-
# CI 작업이 실행되는 동안 RabbitMQ 서비스 컨테이너를 함께 실행
2826
services:
27+
# CI 작업이 실행되는 동안 RabbitMQ 서비스 컨테이너를 함께 실행
2928
rabbitmq:
3029
image: rabbitmq:3-management
3130
ports:
@@ -37,6 +36,16 @@ jobs:
3736
--health-timeout 5s
3837
--health-retries 5
3938
39+
# CI 작업이 실행되는 동안 ElasticSearch 서비스 컨테이너 함께 실행
40+
elasticsearch:
41+
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.5
42+
ports:
43+
- 9200:9200
44+
options: >-
45+
--env discovery.type=single-node
46+
--env xpack.security.enabled=false
47+
--env ES_JAVA_OPTS=-Xms512m -Xmx512m
48+
4049
steps:
4150
# 1. 소스 코드 체크아웃
4251
- name: Checkout source code
@@ -73,6 +82,8 @@ jobs:
7382
SPRING_RABBITMQ_HOST: localhost
7483
SPRING_RABBITMQ_USERNAME: guest
7584
SPRING_RABBITMQ_PASSWORD: guest
85+
SPRING_DATA_ELASTICSEARCH_HOST: localhost
86+
SPRING_DATA_ELASTICSEARCH_PORT: 9200
7687
KAKAO_CLIENT_ID: ${{ secrets.OAUTH_KAKAO_CLIENT_ID }}
7788
GOOGLE_CLIENT_ID: ${{ secrets.OAUTH_GOOGLE_CLIENT_ID }}
7889
GOOGLE_CLIENT_SECRET: ${{ secrets.OAUTH_GOOGLE_CLIENT_SECRET }}

0 commit comments

Comments
 (0)