Skip to content

Commit

Permalink
feat(jit-binding-server): configure publishing to DockerHub (#1328)
Browse files Browse the repository at this point in the history
Part of #1318.
  • Loading branch information
krzema12 authored Mar 28, 2024
1 parent f883c69 commit b203aed
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions jit-binding-server/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import io.ktor.plugin.features.*

plugins {
buildsrc.convention.`kotlin-jvm`
application
id("io.ktor.plugin") version "2.3.9"
}

dependencies {
Expand All @@ -15,3 +18,19 @@ dependencies {
application {
mainClass.set("io.github.typesafegithub.workflows.jitbindingserver.MainKt")
}

val dockerAppName = "github-workflows-kt-jit-binding-server"

ktor {
docker {
localImageName.set(dockerAppName)

externalRegistry.set(
DockerImageRegistry.dockerHub(
appName = provider { dockerAppName },
username = providers.environmentVariable("DOCKERHUB_USERNAME"),
password = providers.environmentVariable("DOCKERHUB_PASSWORD"),
),
)
}
}

0 comments on commit b203aed

Please sign in to comment.