Adding support for linux/ppc64le in CI for jupyter-web-app multi-arch… (kubeflow/kubeflow#6800)

This commit is contained in:
amitmukati-2604 2022-12-08 18:39:10 +05:30 committed by GitHub
parent dfadbec6e1
commit ae4fc7b0c0
1 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,7 @@
IMG ?= jupyter-web-app
TAG ?= $(shell git describe --tags --always --dirty)
DOCKERFILE ?= jupyter/Dockerfile
ARCH ?= linux/amd64
docker-build:
@ -9,4 +10,13 @@ docker-build:
docker-push:
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 ${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 ${DOCKERFILE} .
image: docker-build docker-push