Skip to content

Commit

Permalink
Merge pull request #8 from dnd-side-project/fix/#7
Browse files Browse the repository at this point in the history
#7 Fix: CI/CD 관련 yml 수정
  • Loading branch information
min-0 authored Jul 31, 2024
2 parents 5f40d05 + 0cad0c4 commit 9ede20e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ jobs:
#JDK 17 설정
java-version: '17'
distribution: 'corretto'
#yml 파일
- name: Set yml
run: |
cat <<EOF >> 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
Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9ede20e

Please sign in to comment.