From 9e13692903889212085ee56c2d4b616db4b1a58b Mon Sep 17 00:00:00 2001 From: min-0 Date: Wed, 31 Jul 2024 15:32:37 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A7=20Fix=20application.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit secrets된 통합 yml로 수정 --- src/main/resources/application.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 282065c..06cf72e 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -4,6 +4,14 @@ spring: profiles: include: - db + datasource: + url: ${MYSQL_URL} + username: ${MYSQL_USERNAME} + password: ${MYSQL_PASSWORD} mvc: pathmatch: matching-strategy: ant_path_matcher + jpa: + properties: + hibernate: + dialect: org.hibernate.dialect.MySQLDialect \ No newline at end of file From 0cad0c4d0302bbb995994b31b39d42e5b4d090c4 Mon Sep 17 00:00:00 2001 From: min-0 Date: Wed, 31 Jul 2024 15:49:33 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=92=9A=20Remove=20application-db.yml?= =?UTF-8?q?=20=EC=83=9D=EC=84=B1=20=EC=9E=91=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ec2 내 env 환경변수 설정으로 yml 생성 작업 삭제 --- .github/workflows/CI.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e80eae4..4def9d1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,16 +27,6 @@ jobs: #JDK 17 설정 java-version: '17' distribution: 'corretto' - #yml 파일 - - name: Set yml - run: | - cat <> src/main/resources/application-db.yml - spring: - datasource: - url: ${{ secrets.MYSQL_URL }} - username: ${{ secrets.MYSQL_USERNAME }} - password: ${{ secrets.MYSQL_PASSWORD }} - EOF #gradlew 파일에 실행 권한 부여 - name: Grant execute permission to gradlew run: chmod +x ./gradlew