diff --git a/.github/workflows/batch-deploy.yml b/.github/workflows/batch-deploy.yml index afe9fe22..f3e95f06 100644 --- a/.github/workflows/batch-deploy.yml +++ b/.github/workflows/batch-deploy.yml @@ -45,6 +45,8 @@ jobs: echo "${{ secrets.OUT_WEB_YML }}" > ./adapters/out-web/src/main/resources/application-out-web.yml mkdir -p ./application/src/main/resources echo "${{ secrets.APPLICATION_CORE }}" > ./application/src/main/resources/application-core.yml + mkdir -p ./adapters/in-batch/src/main/resources + echo "${{ secrets.APPLICATION_IN_BATCH_YML }}" > ./application/src/main/resources/application-in-batch.yml - name: Build with Gradle run: ./gradlew :entry:batch:build --no-daemon diff --git a/adapters/in-batch/build.gradle.kts b/adapters/in-batch/build.gradle.kts index b2a78851..e138d089 100644 --- a/adapters/in-batch/build.gradle.kts +++ b/adapters/in-batch/build.gradle.kts @@ -14,6 +14,7 @@ dependencies { // 라이브러리 implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-actuator") + implementation("io.micrometer:micrometer-registry-prometheus") implementation("org.springframework.boot:spring-boot-starter-batch") implementation("org.springframework.boot:spring-boot-starter-quartz") implementation("com.navercorp.spring:spring-boot-starter-batch-plus-kotlin:1.1.0") diff --git a/entry/batch/src/main/kotlin/com/pokit/BatchApplication.kt b/entry/batch/src/main/kotlin/com/pokit/BatchApplication.kt index 805b28f2..c9accfc4 100644 --- a/entry/batch/src/main/kotlin/com/pokit/BatchApplication.kt +++ b/entry/batch/src/main/kotlin/com/pokit/BatchApplication.kt @@ -11,6 +11,6 @@ import org.springframework.scheduling.annotation.EnableScheduling class BatchApplication fun main(args: Array) { - System.setProperty("spring.config.name", "application-out-web, application-core, application-out-persistence") + System.setProperty("spring.config.name", "application-out-web, application-core, application-out-persistence, application-in-batch") runApplication(*args) }