Skip to content

Commit

Permalink
Merge pull request #88 from TeamPu/fix/#70
Browse files Browse the repository at this point in the history
Flyway 데이터베이스 연결 설정 수정
  • Loading branch information
ahyeonkong authored Dec 4, 2024
2 parents b0764c6 + 5ddb80e commit cde2d98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ jobs:
run: ./gradlew flywayMigrate
env:
SPRING_PROFILES_ACTIVE: cd
SPRING_DATASOURCE_URL: jdbc:mysql://${{ secrets.DB_HOST }}:3306/teampu
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: ${{ secrets.DB_PASSWORD }}
FLYWAY_BASELINE_ON_MIGRATE: "true"
DB_HOST: ${{ secrets.DB_HOST }}
DB_USERNAME: root
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}

- name: Set lowercase repository name without owner environment variable
run: |
Expand Down
9 changes: 4 additions & 5 deletions src/main/resources/application-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ spring:
url: jdbc:mysql://${DB_HOST}:3306/teampu
username: root
password: ${DB_PASSWORD}
flyway:
enabled: true
baseline-on-migrate: true
locations: classpath:db/migration

jpa:
database-platform: org.hibernate.dialect.MySQLDialect
Expand All @@ -14,11 +18,6 @@ spring:
show_sql: false
format_sql: true

flyway:
enabled: true
baseline-on-migrate: true
locations: classpath:db/migration

data:
redis:
host: localhost
Expand Down

0 comments on commit cde2d98

Please sign in to comment.