mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
build: Build and push multi architecture images to dockerhub
As quay.io doesnot support the multi architecture images, We need to switch to dockerhub as it supports multi-architecture images. closes: #1003 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
5208c0fc38
commit
b949d5f9c7
9
Makefile
9
Makefile
@ -162,8 +162,13 @@ push-image-cephcsi: GOARCH ?= $(shell go env GOARCH 2>/dev/null)
|
||||
push-image-cephcsi: need-container-cmd image-cephcsi
|
||||
$(CONTAINER_CMD) tag $(CSI_IMAGE) $(CSI_IMAGE)-$(GOARCH)
|
||||
$(CONTAINER_CMD) push $(CSI_IMAGE)-$(GOARCH)
|
||||
# push amd64 image as default one
|
||||
if [ $(GOARCH) = amd64 ]; then $(CONTAINER_CMD) push $(CSI_IMAGE); fi
|
||||
|
||||
create-manifest: GOARCH ?= $(shell go env GOARCH 2>/dev/null)
|
||||
create-manifest: need-container-cmd
|
||||
$(CONTAINER_CMD) manifest create $(CSI_IMAGE) --amend $(CSI_IMAGE)-$(GOARCH)
|
||||
|
||||
push-manifest: need-container-cmd
|
||||
$(CONTAINER_CMD) manifest push $(CSI_IMAGE)
|
||||
|
||||
clean:
|
||||
go clean -mod=vendor -r -x
|
||||
|
@ -77,7 +77,9 @@ build_push_images() {
|
||||
build_step "make push-image-cephcsi for ${ARCH}"
|
||||
GOARCH=${ARCH} BASE_IMAGE=${base_image} make push-image-cephcsi
|
||||
build_step_log "done: make push-image-cephcsi for ${ARCH} (ret=${?})"
|
||||
GOARCH=${ARCH} make create-manifest
|
||||
done
|
||||
make push-manifest
|
||||
}
|
||||
|
||||
if [ "${TRAVIS_BRANCH}" == 'master' ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user