test images: Fixes Windows busybox image

The image "e2eteam/powershell-helper:6.2.7-linux-cache" is a Linux image. Because we're running "docker buildx build --platform windows/amd64", docker buildx will consider it as a Windows image unless we explicitly specify otherwise. If the image's platform is not correctly identified, we can run into problems when trying to build the image.

We are already doing something similar with the windows-servercore-cache image.
This commit is contained in:
Claudiu Belu
2021-03-17 16:51:06 +02:00
committed by GitHub
parent 2f3ea9b7c5
commit 327093093d

View File

@@ -57,7 +57,7 @@ RUN mkdir /curl-full /curl-dir && \
# Windows Stage
FROM --platform=linux/amd64 $REGISTRY/windows-servercore-cache:1.0-linux-amd64-$OS_VERSION as servercore-helper
FROM e2eteam/powershell-helper:6.2.7-linux-cache as ps-helper
FROM --platform=linux/amd64 e2eteam/powershell-helper:6.2.7-linux-cache as ps-helper
FROM $BASEIMAGE
COPY --from=prep /tmp-dir /tmp