diff --git a/.github/workflows/batch-deploy.yml b/.github/workflows/batch-deploy.yml index f3e95f06..def68268 100644 --- a/.github/workflows/batch-deploy.yml +++ b/.github/workflows/batch-deploy.yml @@ -47,6 +47,8 @@ jobs: 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 + mkdir -p ./adapters/in-batch/src/main/resources + echo "${{ secrets.APPLICATION_IN_BATCH }}" > ./application/src/main/resources/application-in-batch.yml - name: Build with Gradle run: ./gradlew :entry:batch:build --no-daemon diff --git a/entry/batch/src/main/kotlin/com/pokit/BatchApplication.kt b/entry/batch/src/main/kotlin/com/pokit/BatchApplication.kt index 4ed58ef9..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, application-entry-batch") + System.setProperty("spring.config.name", "application-out-web, application-core, application-out-persistence, application-in-batch") runApplication(*args) }