@@ -133,11 +133,11 @@ generate: controller-gen
133133
134134# Build the docker image
135135docker-build : test
136- docker build --platform linux/amd64 . -t ${IMG}
136+ docker buildx build --platform linux/amd64,linux/arm64 . -t ${IMG} --load
137137
138138# Build image for red hat certification
139139docker-build-redhat :
140- docker build --platform linux/amd64 -f redhat.Dockerfile . -t ${IMG} --build-arg VERSION=${VERSION} --no-cache
140+ docker buildx build --platform linux/amd64,linux/arm64 -f redhat.Dockerfile . -t ${IMG} --build-arg VERSION=${VERSION} --load --no-cache
141141
142142# Push the docker image
143143image-push :
@@ -171,7 +171,7 @@ bundle: yq kustomize manifests
171171# Build the bundle image.
172172.PHONY : bundle-build
173173bundle-build :
174- docker build --platform linux/amd64 -f bundle.Dockerfile -t $(BUNDLE_IMG ) .
174+ docker buildx build --platform linux/amd64,linux/arm64 -f bundle.Dockerfile -t $(BUNDLE_IMG ) --load .
175175
176176.PHONY : bundle-push
177177bundle-push : # # Push the bundle image.
@@ -187,7 +187,7 @@ rbac: manifests
187187release : manifests kustomize crd rbac manager operator-docker-image helm-crds
188188
189189operator-docker-image : manager test
190- docker build --platform linux/amd64 -f operator.Dockerfile -t $(OPERATOR_IMG ) .
190+ docker buildx build --platform linux/amd64,linux/arm64 -f operator.Dockerfile -t $(OPERATOR_IMG ) --load .
191191 docker tag $(OPERATOR_IMG ) $(OPERATOR_IMG_LATEST )
192192
193193docker-push :
@@ -256,7 +256,7 @@ function-mesh-docker-image-name:
256256
257257# Build the docker image without tests
258258docker-build-skip-test :
259- docker build --platform linux/amd64 . -t ${IMG}
259+ docker buildx build --platform linux/amd64,linux/arm64 . -t ${IMG} --load
260260
261261e2e : skywalking-e2e yq
262262 $(E2E ) run -c .ci/tests/integration/e2e.yaml
@@ -297,7 +297,7 @@ redhat-certificated-bundle: yq kustomize manifests
297297# Build the bundle image.
298298.PHONY : redhat-certificated-bundle-build
299299redhat-certificated-bundle-build :
300- docker build --platform linux/amd64 -f bundle.Dockerfile -t $(BUNDLE_IMG ) .
300+ docker buildx build --platform linux/amd64,linux/arm64 -f bundle.Dockerfile -t $(BUNDLE_IMG ) --load .
301301
302302.PHONY : redhat-certificated-bundle-push
303303redhat-certificated-bundle-push : # # Push the bundle image.
@@ -307,7 +307,7 @@ redhat-certificated-bundle-push: ## Push the bundle image.
307307# Build the bundle image.
308308.PHONY : redhat-certificated-image-build
309309redhat-certificated-image-build :
310- docker build --platform linux/amd64 -f redhat.Dockerfile . -t ${OPERATOR_IMG} --build-arg VERSION=${VERSION} --no-cache
310+ docker buildx build --platform linux/amd64,linux/arm64 -f redhat.Dockerfile . -t ${OPERATOR_IMG} --build-arg VERSION=${VERSION} --load --no-cache
311311
312312.PHONY : redhat-certificated-image-push
313313redhat-certificated-image-push : # # Push the bundle image.
0 commit comments