Skip to content

Commit

Permalink
chore: 환경변수 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
choihuk committed Dec 8, 2023
1 parent 87ce6b4 commit 705f61d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
IMAGE_NAME: insurance_system
MAIN_YML_PATH: ./src/main/resources/application.yml
TEST_YML_PATH: ./src/main/resources/application-test.yml

jobs:
Expand All @@ -18,6 +19,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: application.yml setting
uses: microsoft/variable-substitution@v1
with:
files: ${{ env.MAIN_YML_PATH }}
env:
coolsms.api.key: ${{ secrets.COOLSMS_API_KEY }}
coolsms.api.secret: ${{ secrets.COOLSMS_API_SECRET }}
coolsms.api.from-number: ${{ secrets.COOLSMS_API_FROM_NUMBER }}

- name: application-test.yml setting
uses: microsoft/variable-substitution@v1
with:
Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ decorator:
datasource:
p6spy:
enable-logging: true

coolsms:
api:
key: ${APIKEY}
secret: ${APISECRET}
from-number: ${FROMNUMBER}
8 changes: 7 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ spring:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

springdoc:
show-login-endpoint: true
show-login-endpoint: true

coolsms:
api:
key: ${COOLSMS_API_KEY}
secret: ${COOLSMS_API_SECRET}
from-number: ${COOLSMS_API_FROM_NUMBER}

0 comments on commit 705f61d

Please sign in to comment.