You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+27-4Lines changed: 27 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ ENVTEST_K8S_VERSION = 1.28.0
15
15
16
16
GOCMD?= go
17
17
18
+
POST_BUILD_FLAG ?= --push
19
+
18
20
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
19
21
ifeq (,$(shell$(GOCMD) env GOBIN))
20
22
GOBIN=$(shell$(GOCMD)go env GOPATH)/bin
@@ -122,7 +124,10 @@ docker-push: ## Push docker image with the manager.
122
124
# - have enable BuildKit, More info: https://docs.docker.com/develop/develop-images/build_enhancements/
123
125
# - be able to push the image for your registry (i.e. if you do not inform a valid value via CONTROLLER_IMG=<myregistry/image:<tag>> than the export will fail)
124
126
# To properly provided solutions that supports more than one platform you should use this option.
# Convert the array to a comma-separated string for docker buildx
129
+
PLATFORMS ?= $(shell echo $(PLATFORM_ARRAY) | sed 's/ /,/g')
130
+
126
131
.PHONY: docker-buildx
127
132
docker-buildx: test docker-buildx-manager docker-buildx-telemetry-proxy docker-buildx-watchdog ## Build and push docker image for the manager for cross-platform support
128
133
@@ -136,15 +141,33 @@ docker-buildx-manager: ## Build and push docker image for the manager for cross-
0 commit comments