File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ WORKDIR /code
21
21
ADD . /code/
22
22
RUN cd /code/ && GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d '/') GCE_PD_CSI_STAGING_VERSION=${STAGINGVERSION} make gce-pd-driver-windows
23
23
24
- FROM ${BASE_IMAGE}
24
+ FROM --platform=$TARGETPLATFORM ${BASE_IMAGE}
25
25
LABEL description="PD CSI driver"
26
26
COPY --from=builder /code/bin/gce-pd-csi-driver.exe /gce-pd-csi-driver.exe
27
27
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ DRIVERWINDOWSBINARY=${DRIVERBINARY}.exe
23
23
24
24
DOCKER=DOCKER_CLI_EXPERIMENTAL =enabled docker
25
25
26
- BASE_IMAGE_LTSC2019 =mcr.microsoft.com/windows/servercore:ltsc2019
26
+ BASE_IMAGE_LTSC2019 =mcr.microsoft.com/windows/servercore:ltsc2022
27
27
28
28
# Both arrays MUST be index aligned.
29
- WINDOWS_IMAGE_TAGS =ltsc2019
29
+ WINDOWS_IMAGE_TAGS =ltsc2022
30
30
WINDOWS_BASE_IMAGES =$(BASE_IMAGE_LTSC2019 )
31
31
32
32
GCFLAGS =""
@@ -55,7 +55,7 @@ build-container: require-GCE_PD_CSI_STAGING_IMAGE require-GCE_PD_CSI_STAGING_VER
55
55
--push .
56
56
57
57
build-and-push-windows-container-ltsc2019 : require-GCE_PD_CSI_STAGING_IMAGE init-buildx
58
- $(DOCKER ) buildx build --file=Dockerfile.Windows --platform=windows \
58
+ $(DOCKER ) buildx build --file=Dockerfile.Windows --platform=windows/amd64 \
59
59
-t $(STAGINGIMAGE ) :$(STAGINGVERSION ) _ltsc2019 \
60
60
--build-arg BASE_IMAGE=$(BASE_IMAGE_LTSC2019 ) \
61
61
--build-arg STAGINGVERSION=$(STAGINGVERSION ) --push --provenance=false .
You can’t perform that action at this time.
0 commit comments