Introduce versioning from git tags and improve CI/CD workflows

This commit is contained in:
Overlord committed 2026-09-30 20:32:14 +02:00
1 parent 989cb88e0a
commit e13132c202
6 files changed
+58 -9

No files matched your search

+6 -2
View File
@@ -12,7 +12,8 @@
# server reports another one. Default: pz.version in gradle.properties
# STEAMCLIENT bundled (default) or steamcmd: replace the server's steamclient.so
# files with steamcmd's newer copies
# FORGE_VERSION Image label only; set by ci/release.sh
# FORGE_VERSION ZomboidForge version (jar manifest, image label); set by ci/release.sh.
# Default: 0.0.0-prerelease
# STEAM_BUILDID Image label only; set by ci/release.sh
ARG PZ_BRANCH=public
@@ -50,11 +51,14 @@ COPY agent agent
COPY patcher patcher
COPY --from=server /server/java/projectzomboid.jar /pz/projectzomboid.jar
# An empty PZ_VERSION keeps pz.version from gradle.properties.
# An empty PZ_VERSION keeps pz.version from gradle.properties; an empty FORGE_VERSION gives
# the build the fallback version 0.0.0-prerelease (the image has no git history).
ARG PZ_VERSION
ARG FORGE_VERSION
RUN ./gradlew --no-daemon \
-Ppz.jar=/pz/projectzomboid.jar \
${PZ_VERSION:+-Ppz.version=${PZ_VERSION}} \
${FORGE_VERSION:+-Pversion=${FORGE_VERSION}} \
build :patcher:patchServerJar
# --- Stage 3: runtime ------------------------------------------------------------