Files
wahlrecht/module-deploy/deploy.gradle.kts
T
2023-08-20 10:44:57 +02:00

39 lines
925 B
Kotlin

plugins {
id("twomartens.jib")
}
dependencies {
implementation(project(":server"))
}
jib {
from {
image = "amazoncorretto:" + properties["projectSourceCompatibility"] + "-al2023"
platforms {
platform {
architecture = "amd64"
os = "linux"
}
platform {
architecture = "arm64"
os = "linux"
}
}
}
to {
image = "2martens/wahlrecht"
tags = setOf(
"latest",
properties["version"].toString().replace("+", "-"))
auth {
username = System.getenv("USERNAME")
password = System.getenv("PASSWORD")
}
}
container {
mainClass = "de.twomartens.wahlrecht.MainApplicationKt"
jvmFlags = listOf("-XX:+UseContainerSupport",
"-XX:MaxRAMPercentage=75.0")
}
}