Skip to content

Commit

Permalink
Merge pull request #18 from gaaji/GM-185
Browse files Browse the repository at this point in the history
GM-185 회원 서비스 설정 파일 수정 및 CI 파일 수정
  • Loading branch information
kgh2120 authored Feb 1, 2023
2 parents 12b4d07 + 0786e95 commit eeb0214
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
SECRET_FILE_NAME: secret.yml
run: echo $SECRET_CODE | base64 --decode > $SECRET_DIR/$SECRET_FILE_NAME

- name: Create application-oauth.yml
- name: Create oauth.yml
env:
SECRET_CODE: ${{ secrets.OAUTH }}
SECRET_DIR: src/main/resources
SECRET_FILE_NAME: application-oauth.yml
SECRET_FILE_NAME: oauth.yml
run: echo $SECRET_CODE | base64 --decode > $SECRET_DIR/$SECRET_FILE_NAME

- name: Grant execute permission for gradlew
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ out/
.vscode/

### security
/src/main/resources/application-oauth.yml
/src/main/resources/oauth.yml
/src/main/resources/secret.yml
5 changes: 5 additions & 0 deletions src/main/resources/application-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ spring:
config:
activate:
on-profile: "docker"
import:
- secret.yml
- oauth.yml
application:
name: auth-service

redis:
host: redis
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ spring:
group:
"default":
- "dev"
- "oauth"
application:
name: auth-service
config:
import: secret.yml
import:
- secret.yml
- oauth.yml

eureka:
client:
Expand Down

0 comments on commit eeb0214

Please sign in to comment.