From a56152caa1324b7567b84002e02bb7de13dda843 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Wed, 14 Aug 2024 14:20:55 +0000 Subject: [PATCH] fix: add OSVersion arg in Dockerfile.Windows to fix windows 2022 test failure --- cmd/smbplugin/Dockerfile.Windows | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/smbplugin/Dockerfile.Windows b/cmd/smbplugin/Dockerfile.Windows index 52114e3d9..74b2c3209 100644 --- a/cmd/smbplugin/Dockerfile.Windows +++ b/cmd/smbplugin/Dockerfile.Windows @@ -13,8 +13,9 @@ # limitations under the License. # these arguments come from BUILD_PLATFORMS used in release-tools -ARG ADDON_IMAGE=servercore:1809 -ARG BASE_IMAGE=nanoserver:1809 +ARG OSVERSION +ARG ADDON_IMAGE=servercore:${OSVERSION} +ARG BASE_IMAGE=nanoserver:${OSVERSION} ARG REGISTRY=mcr.microsoft.com/windows FROM ${REGISTRY}/${ADDON_IMAGE} AS addon