mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 07:57:55 +02:00
41 lines
1.0 KiB
Kotlin
41 lines
1.0 KiB
Kotlin
plugins {
|
|
id("twomartens.jib")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":server"))
|
|
}
|
|
|
|
jib {
|
|
from {
|
|
image = "amazoncorretto:" + properties["projectSourceCompatibility"] + "-alpine"
|
|
platforms {
|
|
platform {
|
|
architecture = "amd64"
|
|
os = "linux"
|
|
}
|
|
platform {
|
|
architecture = "arm64"
|
|
os = "linux"
|
|
}
|
|
}
|
|
}
|
|
to {
|
|
image = "2martens/timetable"
|
|
tags = setOf(
|
|
"latest",
|
|
properties["version"].toString().replace("+", "-"))
|
|
auth {
|
|
username = System.getenv("USERNAME")
|
|
password = System.getenv("PASSWORD")
|
|
}
|
|
}
|
|
container {
|
|
mainClass = "de.twomartens.timetable.MainApplicationKt"
|
|
jvmFlags = listOf("-XX:+UseContainerSupport",
|
|
"-XX:MaxRAMPercentage=75.0")
|
|
user = "nobody"
|
|
}
|
|
outputPaths.digest = "${layout.buildDirectory.get().asFile}/jib-image.digest"
|
|
}
|