Skip to content

Commit 132683c

Browse files
committed
Infra: dev 브랜치 CI 빌드 환경 추가
- main 브랜치에 PR 요청 시, CI 빌드 시, MySQL 서비스 추가
1 parent 7120628 commit 132683c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/backend-ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ jobs:
1818
ports:
1919
- 6379:6379
2020

21+
mysql:
22+
image: mysql:8
23+
ports:
24+
- 3306:3306
25+
env:
26+
MYSQL_ROOT_PASSWORD: root
27+
MYSQL_DATABASE: testdb
28+
options: >-
29+
--health-cmd="mysqladmin ping -h localhost -p$MYSQL_ROOT_PASSWORD"
30+
--health-interval=10s
31+
--health-timeout=5s
32+
--health-retries=3
33+
2134
steps:
2235
# 저장소 체크아웃
2336
- name: Checkout repository

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ db_dev.mv.db
4141
db_dev.trace.db
4242
.env
4343
.env.*
44+
env.prod
4445

4546
### Terraform ###
4647
/infra/terraform/.terraform

0 commit comments

Comments
 (0)