Skip to content

Commit 7641a7d

Browse files
authored
Merge pull request #16 from Zophar78/feature/build-multiarch
Added arm64 docker target
2 parents 2ae1c8f + f416a8a commit 7641a7d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
with:
4040
context: .
4141
push: true
42+
platforms: linux/amd64,linux/arm64
4243
tags: |
4344
${{ secrets.DOCKERHUB_USERNAME }}/vmware-exporter:latest
4445
ghcr.io/${{ github.repository_owner }}/vmware-exporter:latest
@@ -74,6 +75,7 @@ jobs:
7475
with:
7576
context: .
7677
push: true
78+
platforms: linux/amd64,linux/arm64
7779
tags: |
7880
${{ secrets.DOCKERHUB_USERNAME }}/vmware-exporter:${{ github.ref_name }}
7981
ghcr.io/${{ github.repository_owner }}/vmware-exporter:${{ github.ref_name }}

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ RUN apk add --update --no-cache ca-certificates
55

66
# Set necessary environmet variables needed for our image
77
ENV GO111MODULE=on \
8-
CGO_ENABLED=0 \
9-
GOOS=linux \
10-
GOARCH=amd64 \
11-
GOAMD64=v2
8+
CGO_ENABLED=0
129

1310
ADD . /build
1411
WORKDIR /build

0 commit comments

Comments
 (0)