Skip to content

Commit d7e729e

Browse files
committed
fix(bake): proper Windows version processing
Amends: - #2189
1 parent 537fc55 commit d7e729e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker-bake.hcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variable "jdks_to_build" {
44
}
55

66
variable "windows_version_to_build" {
7-
default = ["windowsservercore-ltsc2019", "windowsservercore-ltsc2022"]
7+
default = ["ltsc2019", "ltsc2022"]
88
}
99

1010
variable "default_jdk" {
@@ -175,7 +175,7 @@ target "windowsservercore" {
175175
jdk = jdks_to_build
176176
windows_version = windowsversions()
177177
}
178-
name = "${windows_version}_jdk${jdk}"
178+
name = "windowsservercore-${windows_version}_jdk${jdk}"
179179
dockerfile = "windows/windowsservercore/hotspot/Dockerfile"
180180
context = "."
181181
args = {
@@ -188,7 +188,7 @@ target "windowsservercore" {
188188
JAVA_HOME = "C:/openjdk-${jdk}"
189189
WINDOWS_VERSION = windows_version
190190
}
191-
tags = windows_tags(windows_version, jdk)
191+
tags = windows_tags("windowsservercore-${windows_version}", jdk)
192192
platforms = ["windows/amd64"]
193193
}
194194

@@ -334,7 +334,7 @@ function "windows_tags" {
334334
tag_weekly(false, "jdk${jdk}-hotspot-${distribution}"),
335335
tag_lts(false, "lts-jdk${jdk}-hotspot-${distribution}"),
336336

337-
# ## Default JDK extra short tags
337+
## Default JDK extra short tags
338338
is_default_jdk(jdk) ? tag(true, "hotspot-${distribution}") : "",
339339
is_default_jdk(jdk) ? tag_weekly(false, distribution) : "",
340340
is_default_jdk(jdk) ? tag_weekly(true, distribution) : "",

0 commit comments

Comments
 (0)