Skip to content

Commit a56152c

Browse files
committed
fix: add OSVersion arg in Dockerfile.Windows to fix windows 2022 test failure
1 parent 7b0d59c commit a56152c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/smbplugin/Dockerfile.Windows

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
# limitations under the License.
1414

1515
# these arguments come from BUILD_PLATFORMS used in release-tools
16-
ARG ADDON_IMAGE=servercore:1809
17-
ARG BASE_IMAGE=nanoserver:1809
16+
ARG OSVERSION
17+
ARG ADDON_IMAGE=servercore:${OSVERSION}
18+
ARG BASE_IMAGE=nanoserver:${OSVERSION}
1819
ARG REGISTRY=mcr.microsoft.com/windows
1920

2021
FROM ${REGISTRY}/${ADDON_IMAGE} AS addon

0 commit comments

Comments
 (0)