Skip to content

Commit

Permalink
Replace hardcoded amd64 arch with buildx targetarch (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlex authored Feb 6, 2022
1 parent bcbcdb2 commit 6766a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM golang:1.17 as builder
WORKDIR /go/src/github.com/sstarcher/helm-exporter
COPY . /go/src/github.com/sstarcher/helm-exporter

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/bin/helm-exporter /go/src/github.com/sstarcher/helm-exporter/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -o /go/bin/helm-exporter /go/src/github.com/sstarcher/helm-exporter/main.go

FROM alpine:3
RUN apk --update add ca-certificates
Expand Down

0 comments on commit 6766a95

Please sign in to comment.