Skip to content

Commit

Permalink
Merge pull request #79 from TeamPu/fix/#70
Browse files Browse the repository at this point in the history
원격 배포(CD) 과정의 Gradle 빌드 과정에서의 의존성 문제 관련
  • Loading branch information
ahyeonkong authored Dec 4, 2024
2 parents 202d04d + eced6b3 commit 2d23f00
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,8 @@ jobs:
SPRING_DATASOURCE_URL: jdbc:mysql://${{ secrets.DB_HOST }}:3306/teampu
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: ${{ secrets.DB_PASSWORD }}
run: |
./gradlew flywayMigrate

# Gradle 캐시를 초기화하고 모든 의존성을 새로 다운로드하여 빌드
- name: Build with Gradle
run: |
./gradlew clean build --refresh-dependencies
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,13 @@ bootRun {
if (project.hasProperty('springProfiles')) {
systemProperty 'spring.profiles.active', project.springProfiles
}
}

// 원격 배포(CD) 과정의 Gradle 빌드 과정에서의 의존성 문제 관련
bootJar {
enabled = true
}

jar {
enabled = false
}

0 comments on commit 2d23f00

Please # to comment.