Skip to content

Commit 1465b4f

Browse files
committed
fix(bake): proper Windows version processing
Amends: - jenkinsci#2189
1 parent d566a80 commit 1465b4f

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" {
@@ -168,7 +168,7 @@ target "windowsservercore" {
168168
jdk = jdks_to_build
169169
windows_version = windowsversions()
170170
}
171-
name = "${windows_version}_jdk${jdk}"
171+
name = "windowsservercore-${windows_version}_jdk${jdk}"
172172
dockerfile = "windows/windowsservercore/hotspot/Dockerfile"
173173
context = "."
174174
args = {
@@ -180,7 +180,7 @@ target "windowsservercore" {
180180
JAVA_HOME = "C:/openjdk-${jdk}"
181181
WINDOWS_VERSION = windows_version
182182
}
183-
tags = windows_tags(windows_version, jdk)
183+
tags = windows_tags("windowsservercore-${windows_version}", jdk)
184184
platforms = ["windows/amd64"]
185185
}
186186

@@ -326,7 +326,7 @@ function "windows_tags" {
326326
tag_weekly(false, "jdk${jdk}-hotspot-${distribution}"),
327327
tag_lts(false, "lts-jdk${jdk}-hotspot-${distribution}"),
328328

329-
# ## Default JDK extra short tags
329+
## Default JDK extra short tags
330330
is_default_jdk(jdk) ? tag(true, "hotspot-${distribution}") : "",
331331
is_default_jdk(jdk) ? tag_weekly(false, distribution) : "",
332332
is_default_jdk(jdk) ? tag_weekly(true, distribution) : "",

0 commit comments

Comments
 (0)