From 1f76371be772e4820f3165dce81f5d09d941a184 Mon Sep 17 00:00:00 2001 From: HyunSu1768 Date: Thu, 1 Aug 2024 19:24:45 +0900 Subject: [PATCH] =?UTF-8?q?feat=20::=20domain=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapter/dto/request/SetContainerConfigRequest.kt | 3 ++- .../application/service/SetContainerConfigService.kt | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/dto/request/SetContainerConfigRequest.kt b/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/dto/request/SetContainerConfigRequest.kt index 050135e..9b03544 100644 --- a/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/dto/request/SetContainerConfigRequest.kt +++ b/src/main/kotlin/xquare/app/xquareinfra/domain/container/adapter/dto/request/SetContainerConfigRequest.kt @@ -7,6 +7,7 @@ data class SetContainerConfigRequest( data class ContainerConfigDetails( val branch: String, - val containerPort: Int + val containerPort: Int, + val domain: String ) diff --git a/src/main/kotlin/xquare/app/xquareinfra/domain/container/application/service/SetContainerConfigService.kt b/src/main/kotlin/xquare/app/xquareinfra/domain/container/application/service/SetContainerConfigService.kt index 358ac88..33dde68 100644 --- a/src/main/kotlin/xquare/app/xquareinfra/domain/container/application/service/SetContainerConfigService.kt +++ b/src/main/kotlin/xquare/app/xquareinfra/domain/container/application/service/SetContainerConfigService.kt @@ -53,10 +53,10 @@ class SetContainerConfigService( deploy = deploy, containerEnvironment = environment, lastDeploy = LocalDateTime.now(), - subDomain = null, + subDomain = config.domain, environmentVariable = container?.environmentVariable ?: mapOf(), githubBranch = config.branch, - containerPort = config.containerPort + containerPort = config.containerPort, ) ) @@ -72,7 +72,8 @@ class SetContainerConfigService( "repository" to deploy.repository, "branch" to container.githubBranch!!, "environment" to container.containerEnvironment.name, - "containerPort" to container.containerPort!! + "containerPort" to container.containerPort!!, + "domain" to container.subDomain!! ) ) )