Skip to content

Commit

Permalink
docker-image.yml 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yooonwodyd committed Dec 21, 2023
1 parent a27b7ff commit 288dc37
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
with:
java-version: 17
distribution: 'temurin'
- name: Add env properties
run: |
touch ./src/main/resources/env.yaml
echo "${{ secrets.ENV_YML }}" > ./src/main/resources/env.yaml
- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ out/
### VS Code ###
.vscode/

src/main/resources/env.yml
3 changes: 3 additions & 0 deletions src/main/resources/application-jwt.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
spring:
config:
import: "classpath:env.yml"
jwt:
secret: ${JWT_SECRET}
3 changes: 3 additions & 0 deletions src/main/resources/application-kakao.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
spring:
config:
import: "classpath:env.yml"
kakao:
clientId: ${KAKAO_CLIENT_ID}
redirectUrl: ${KAKAO_REDIRECT_URL}
4 changes: 3 additions & 1 deletion src/main/resources/application-rds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
# password: root
#
spring:
config:
import: "classpath:env.yml"
datasource:
url: jdbc:mariadb://happy-new-year.cp3aplx9qafk.ap-northeast-2.rds.amazonaws.com/happy_new_year
driver-class-name: org.mariadb.jdbc.Driver
username: ${RDS_USERNAME}
password: ${RDS_PASSWORD}
password: ${RDS_PASSWORD}
2 changes: 2 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
spring:
config:
import: "classpath:env.yml"
profiles:
include: rds,jwt,kakao
jpa:
Expand Down

0 comments on commit 288dc37

Please sign in to comment.