From 3428acef7de94eef6dd9705783de08b012e9569f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 14 Nov 2024 22:39:30 +0100 Subject: [PATCH] feat: Add arm64 windows support for docker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto Kröpke --- .github/workflows/release.yml | 2 +- Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec84130a8..0789dba6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -164,4 +164,4 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: windows/amd64 + platforms: windows/amd64,windows/arm64 diff --git a/Dockerfile b/Dockerfile index f1a24b9e1..3c8cb85fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,7 @@ 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 +ARG TARGETARCH + +COPY windows_exporter*-$TARGETARCH.exe /windows_exporter.exe ENTRYPOINT ["windows_exporter.exe"]