diff --git a/.github/workflows/master_weekly_cicd.yml b/.github/workflows/master_weekly_cicd.yml index 1e8ae40..3a04a2c 100644 --- a/.github/workflows/master_weekly_cicd.yml +++ b/.github/workflows/master_weekly_cicd.yml @@ -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 }} diff --git a/.github/workflows/pr_weekly_ci.yml b/.github/workflows/pr_weekly_ci.yml index d00ebe0..0acf431 100644 --- a/.github/workflows/pr_weekly_ci.yml +++ b/.github/workflows/pr_weekly_ci.yml @@ -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 }} diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 62053b5..3bf77ba 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -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: