Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ COPY go.mod go.sum ./
# uncomment if using vendor
# COPY ./vendor ./vendor

ARG GOPROXY
ENV GOPROXY=${GOPROXY}

RUN go mod download

COPY . ./
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ generate: controller-gen
# Requires buildx to be installed: https://docs.docker.com/buildx/working-with-buildx/
# By default the TARGETPLATFORM is set to linux/amd64, change the value if you are building for linux/arm64
docker-build: check-env test
docker buildx build --platform linux/amd64 -t $(IMAGE) . --load
docker buildx build --platform linux/amd64 --build-arg GOPROXY=$(GOPROXY) -t $(IMAGE) . --load
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we only considering linux/amd64?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The github workflow performs its own builds, including an arm64 image. Perhaps we could be a bit more clever about sharing the build setup and configuration for each, but as this is an existing setup that's not being changed by this patch I'm ok leaving that for now.


docker-push: check-env
docker push $(IMAGE)
Expand Down