mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
Changed to Kotlin
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user