Skip to content

Commit

Permalink
feat: CI.yml mysql step 위치 수정 및 application.yml jpa mysql 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
versatile0010 committed Aug 5, 2023
1 parent d7126b3 commit dc07e58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ jobs:
distribution: 'zulu'
java-version: 17

- name: Setup MySQL
uses: mirromutth/[email protected]
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
Expand Down Expand Up @@ -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/[email protected]
with:
host port: 3306
container port: 3306
mysql database: 'couphone-database'
mysql user: ${{secrets.DATASOURCE_USERNAME_DEV}}
mysql password: ${{secrets.DATASOURCE_PASSWORD_DEV}}
# --------------------------추가
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ spring:
on-profile: JPA
jpa:
hibernate:
database-platform: org.hibernate.dialect.MySQLDialect
ddl-auto: create
properties:
hibernate:
Expand Down

0 comments on commit dc07e58

Please sign in to comment.