diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63d6b0c92..615b6fd84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -240,5 +240,4 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: windows/amd64 - annotations: ${{ steps.meta.outputs.labels }} + platforms: windows/amd64,windows/arm64 diff --git a/Dockerfile b/Dockerfile index f1a24b9e1..c34b8ecaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,12 @@ # This image MUST be built with docker buildx build (buildx) command on a Linux system. # Ref: https://github.com/microsoft/windows-host-process-containers-base-image +ARG BUILDARCH +ARG TARGETARCH + ARG BASE="mcr.microsoft.com/oss/kubernetes/windows-host-process-containers-base-image:v1.0.0" -FROM $BASE -COPY windows_exporter*-amd64.exe /windows_exporter.exe +FROM --platform=windows/$BUILDARCH $BASE + +COPY windows_exporter*-${TARGETARCH}.exe /windows_exporter.exe ENTRYPOINT ["windows_exporter.exe"]