Skip to content

Commit

Permalink
Merge pull request #51 from kakao-tech-campus-2nd-step3/deploy/50-rds
Browse files Browse the repository at this point in the history
deploy: RDS (MySQL) ์ƒ์„ฑ ๋ฐ ์—ฐ๋™
  • Loading branch information
peeerr authored Oct 11, 2024
2 parents 931bd63 + 534ea58 commit 040a0d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/master_weekly_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
with:
files: ./src/main/resources/application-prod.yml
env:
spring.datasource.url: ${{ secrets.RDS_URL }}
spring.datasource.username: ${{ secrets.RDS_USERNAME }}
spring.datasource.password: ${{ secrets.RDS_PASSWORD }}
aws.s3.bucket: ${{ secrets.AWS_S3_BUCKET }}
aws.s3.accessKey: ${{ secrets.AWS_S3_ACCESS_KEY }}
aws.s3.secretKey: ${{ secrets.AWS_S3_SECRET_KEY }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr_weekly_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
with:
files: ./src/main/resources/application-prod.yml
env:
spring.datasource.url: ${{ secrets.RDS_URL }}
spring.datasource.username: ${{ secrets.RDS_USERNAME }}
spring.datasource.password: ${{ secrets.RDS_PASSWORD }}
aws.s3.bucket: ${{ secrets.AWS_S3_BUCKET }}
aws.s3.accessKey: ${{ secrets.AWS_S3_ACCESS_KEY }}
aws.s3.secretKey: ${{ secrets.AWS_S3_SECRET_KEY }}
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
spring:
datasource:
url: jdbc:h2:mem:testdb
username: sa
password:
url: ${RDS_URL}
username: ${RDS_USERNAME}
password: ${RDS_PASSWORD}

jpa:
properties:
hibernate:
format_sql: true
jdbc:
time_zone: Asia/Seoul
show-sql: true
hibernate:
ddl-auto: update

h2:
console:
Expand Down

0 comments on commit 040a0d5

Please sign in to comment.