@@ -125,6 +125,15 @@ def update_windows():
125125 .replace ("%%RUSTUP-SHA256%%" , rustup_hash_windows ("x86_64-pc-windows-msvc" ))
126126 write_file (f"{ rust_version } /windowsservercore-{ version } /msvc/Dockerfile" , rendered )
127127
128+ template = read_file ("Dockerfile-windows-gnu.template" )
129+ for version , build in windows_servercore_versions :
130+ rendered = template \
131+ .replace ("%%RUST-VERSION%%" , rust_version ) \
132+ .replace ("%%RUSTUP-VERSION%%" , rustup_version ) \
133+ .replace ("%%WINDOWS-VERSION%%" , version ) \
134+ .replace ("%%RUSTUP-SHA256%%" , rustup_hash_windows ("x86_64-pc-windows-msvc" ))
135+ write_file (f"{ rust_version } /windowsservercore-{ version } /gnu/Dockerfile" , rendered )
136+
128137def update_github_actions ():
129138 file = ".github/workflows/build-images.yml"
130139 config = read_file (file )
@@ -149,6 +158,11 @@ def update_github_actions():
149158 versions += f" os: windows-2019\n "
150159 versions += f" version: { rust_version } \n "
151160
161+ for version , build in windows_servercore_versions :
162+ versions += f" - variant: windowsservercore-{ version } /gnu\n "
163+ versions += f" os: windows-2019\n "
164+ versions += f" version: { rust_version } \n "
165+
152166
153167 marker = "#VERSIONS\n "
154168 split = config .split (marker )
@@ -232,6 +246,17 @@ def generate_stackbrew_library():
232246 map (lambda a : a .bashbrew , alpine_arches ),
233247 os .path .join (rust_version , f"alpine{ version } " ))
234248
249+ for version , build in windows_servercore_versions :
250+ tags = []
251+ for version_tag in version_tags ():
252+ tags .append (f"{ version_tag } -windowsservercore-{ version } -gnu" )
253+ tags .append (f"windowsservercore-{ version } -gnu" )
254+
255+ library += single_library (
256+ tags ,
257+ ["x86_64" ],
258+ os .path .join (rust_version , f"windowsservercore-{ version } " , "gnu" ))
259+
235260 print (library )
236261
237262def usage ():
0 commit comments