Adding multi-arch support for linux-ppc64le in CI for notebook-controller (kubeflow/kubeflow#6771)

This commit is contained in:
adilhusain-s 2022-12-02 19:02:17 +05:30 committed by GitHub
parent 2a2ad29745
commit b7fa846b03
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# Image URL to use all building/pushing image targets
IMG ?= notebook-controller
TAG ?= $(shell git describe --tags --always --dirty)
ARCH ?= linux/amd64
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd"
@ -85,6 +86,16 @@ docker-build: ## Build docker image with the manager.
docker-push: ## Push docker image with the manager.
docker push ${IMG}:${TAG}
.PHONY: docker-build-multi-arch
docker-build-multi-arch: ## Build multi-arch docker images with docker buildx
cd .. && docker buildx build --platform ${ARCH} --tag ${IMG}:${TAG} -f ./notebook-controller/Dockerfile .
.PHONY: docker-build-push-multi-arch
docker-build-push-multi-arch: ## Build multi-arch docker images with docker buildx and push to docker registry
cd .. && docker buildx build --platform ${ARCH} --tag ${IMG}:${TAG} --push -f ./notebook-controller/Dockerfile .
.PHONY: image
image: docker-build docker-push ## Build and push docker image with the manager.