Skip to content

Commit

Permalink
add jib to gradle build
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Mar 31, 2024
1 parent cb40a26 commit 0f45d87
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions backend/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "com.nestapp"
version = "0.6.0"
version = "0.6.2"

application {
mainClass.set("com.nestapp.Main")
Expand All @@ -15,15 +15,23 @@ application {
ktor {
docker {
jreVersion.set(JavaVersion.VERSION_17)
localImageName.set("nest2d")
imageTag.set(project.version.toString())
imageTag.set("${project.version}")
externalRegistry.set(
io.ktor.plugin.features.DockerImageRegistry.dockerHub(
appName = provider { "nest2d" },
username = providers.environmentVariable("DOCKER_HUB_USERNAME"),
password = providers.environmentVariable("DOCKER_HUB_PASSWORD")
)
)
jib {
from {
image = "openjdk:17-jdk-alpine"
}
to {
image = "vovochkastelmashchuk/nest2d"
tags = setOf("${project.version}")
}
}
}
}

Expand Down

0 comments on commit 0f45d87

Please sign in to comment.