Skip to content

Commit

Permalink
Merge pull request #187 from twenty-three-23/feature/TT-228
Browse files Browse the repository at this point in the history
TT-228 data.sql 실행을 환경변수화
  • Loading branch information
snacktime81 authored Jul 11, 2024
2 parents ea54bea + 33ddbd2 commit 0ed7b8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cicd_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
spring.data.redis.password: ${{secrets.REDIS_PASSWORD}}
gpt.api.key: ${{secrets.GPT_API_KEY}}
jwt.secret.key: ${{secrets.JWT_SECRET_KEY}}
spring.sql.init.mode: ${{ secrets.DATA_SQL_OPTION }}
spring.jpa.defer-datasource-initialization: ${{ secrets.DATA_INITALIZATION_OPTION }}

# application.yml 파일 내용 확인
- name: Display modified application.yml
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spring:
password: ${DB_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
defer-datasource-initialization: true # data.sql? ???? ??
defer-datasource-initialization: ${DATA_INITALIZATION_OPTION} # data.sql? ???? ??
hibernate:
ddl-auto: ${DDL_ENV}
open-in-view: true
Expand All @@ -24,7 +24,7 @@ spring:
default_batch_fetch_size: 100
sql:
init:
mode: always
mode: ${DATA_SQL_OPTION}
data:
redis:
host: ${REDIS_HOST}
Expand Down

0 comments on commit 0ed7b8c

Please sign in to comment.