Add support for precise Project Zomboid versioning in builds and images. Include printGameVersion task, improve image tagging, and enhance CI/release workflows for hotfix handling.
ci / image (42, public) (push) Successful in 3m17s

This commit is contained in:
Overlord committed 2026-10-02 17:53:58 +02:00
1 parent c529b04ff0
commit 26ca1b90a2
9 files changed
+137 -34

No files matched your search

+14
View File
@@ -60,3 +60,17 @@ tasks.register<JavaExec>("patchServerJar") {
)
})
}
// Used by ci/release.sh (Dockerfile stage game-version) to name the image before the full build.
tasks.register<JavaExec>("printGameVersion") {
description = "Prints the game version of the server jar (pz.jar)."
group = "help"
val serverJar = projectZomboid.serverJar
classpath = sourceSets.main.get().runtimeClasspath
mainClass = "dev.overlord.zomboidforge.patcher.GameVersionReader"
argumentProviders.add(CommandLineArgumentProvider {
listOf(serverJar.get().asFile.absolutePath)
})
}