fix: no tag prefix for containers (#1945)

This commit is contained in:
Michael Barz
2025-12-01 10:09:40 +01:00
committed by GitHub
parent 7307cda74d
commit 0515f2f53c

View File

@@ -1658,7 +1658,7 @@ def dockerRelease(ctx, repo, build_type):
# if no additional tag is given, the build-plugin adds latest
hard_tag = "daily"
if ctx.build.event == "tag":
tag_version = ctx.build.ref.replace("refs/tags/", "")
tag_version = ctx.build.ref.replace("refs/tags/v", "")
tag_parts = tag_version.split("-")
# if a tag has something appended with "-" i.e. alpha, beta, rc1...