Skip to content

Commit 747eae4

Browse files
authored
ci(release): only publish standalone Minecraft version tag for latest releases (#57)
1 parent f4fd31f commit 747eae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/docker-bake.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ target "release" {
6868
no-cache = true
6969
# Docker tag format: <mc-version>-v<image-version>-<timestamp-YYYYMMDD>
7070
tags = [
71-
equal(IS_LATEST_RELEASE, true) ? tag("latest") : "", # Optional latest tag (empty string = no tag)
72-
tag("${MINECRAFT_VERSION}"), # TODO: fix => only publish if latest release OR always consider latest release
71+
equal(IS_LATEST_RELEASE, true) ? tag("latest") : "",
72+
equal(IS_LATEST_RELEASE, true) ? tag("${MINECRAFT_VERSION}") : "",
7373
tag("${MINECRAFT_VERSION}-v${IMAGE_VERSION}"),
7474
tag("${MINECRAFT_VERSION}-v${IMAGE_VERSION}-${date()}"),
7575
tag("${MINECRAFT_VERSION}-v${extractMajorMinorFromSemVer(IMAGE_VERSION)}"),

0 commit comments

Comments
 (0)