Use docker buildx for building and pushing images

This has the benefit that every tag only shows up as one image. With goreleaser, multiple images were shipped
This commit is contained in:
Joris Coenen
2021-04-23 18:40:15 +02:00
parent e8e01d6578
commit 9e8f621020
2 changed files with 24 additions and 15 deletions

View File

@@ -14,8 +14,6 @@ COPY vendor/ vendor/
# Build
ARG operator_version=dev
RUN CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64 \
GO111MODULE=on \
go build \
-ldflags "-X version.Version=$operator_version" \