From dc07e58f924a200bc7b55f546ff338bef0c50bf5 Mon Sep 17 00:00:00 2001 From: versatile0010 Date: Sat, 5 Aug 2023 18:53:25 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20CI.yml=20mysql=20step=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20application.yml=20?= =?UTF-8?q?jpa=20mysql=20=EC=98=B5=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 18 +++++++++--------- src/main/resources/application.yml | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2eb124f..86b0552 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,6 +42,15 @@ jobs: distribution: 'zulu' java-version: 17 + - name: Setup MySQL + uses: mirromutth/mysql-action@v1.1 + with: + host port: 3306 + container port: 3306 + mysql database: 'couphone-database' + mysql user: ${{secrets.DATASOURCE_USERNAME_DEV}} + mysql password: ${{secrets.DATASOURCE_PASSWORD_DEV}} + - name: Permission for gradlew run: chmod +x ./gradlew shell: bash @@ -70,13 +79,4 @@ jobs: --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name $DEPLOYMENT_GROUP_NAME --s3-location bucket=$BUCKET_NAME,bundleType=zip,key=$PROJECT_NAME/$GITHUB_SHA.zip - - - name: Setup MySQL - uses: mirromutth/mysql-action@v1.1 - with: - host port: 3306 - container port: 3306 - mysql database: 'couphone-database' - mysql user: ${{secrets.DATASOURCE_USERNAME_DEV}} - mysql password: ${{secrets.DATASOURCE_PASSWORD_DEV}} # --------------------------추가 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 8945f06..30d4513 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -61,6 +61,7 @@ spring: on-profile: JPA jpa: hibernate: + database-platform: org.hibernate.dialect.MySQLDialect ddl-auto: create properties: hibernate: