File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,18 +189,18 @@ docker-push: ## Push docker image with the manager.
189189PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
190190.PHONY : docker-buildx
191191docker-buildx : # # Build and push docker image for the manager for cross-platform support
192- # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
193- sed -e ' 1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
194192ifeq ($(CONTAINER_TOOL ) ,podman)
195193 $(CONTAINER_TOOL) build --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross .
196194 $(CONTAINER_TOOL) push ${IMG}
197195else
196+ # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
197+ sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
198198 - $(CONTAINER_TOOL) buildx create --name project-v3-builder
199199 $(CONTAINER_TOOL) buildx use project-v3-builder
200200 - $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross .
201201 - $(CONTAINER_TOOL) buildx rm project-v3-builder
202- endif
203202 rm Dockerfile.cross
203+ endif
204204
205205.PHONY : build-installer
206206build-installer : manifests generate kustomize # # Generate a consolidated YAML with CRDs and deployment.
You can’t perform that action at this time.
0 commit comments