Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jayesh-srivastava committed Oct 11, 2023
1 parent 1dd0d66 commit 37c1cd7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ ifeq ($(FIPS_ENABLE),yes)
RELEASE_LOC := release-fips
endif

REGISTRY ?= gcr.io/spectro-dev-public/${RELEASE_LOC}/cluster-api-coxedge
REGISTRY ?= gcr.io/spectro-dev-public/$(USER)/${RELEASE_LOC}/cluster-api-coxedge
SPECTRO_VERSION ?= 4.0.0-dev
IMG_TAG ?= v0.5.5-spectro-${SPECTRO_VERSION}
IMAGE_NAME ?= cluster-api-cox-controller:${IMG_TAG}
IMG ?= $(REGISTRY)/$(IMAGE_NAME)
IMAGE ?= gcr.io/spectro-dev-public/${RELEASE_LOC}/cluster-api-coxedge/cluster-api-cox-controller
IMAGE ?= gcr.io/spectro-dev-public/$(USER)/${RELEASE_LOC}/cluster-api-coxedge/cluster-api-cox-controller
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true,preserveUnknownFields=false"

Expand Down Expand Up @@ -140,6 +140,8 @@ docker-build-all: $(addprefix docker-build-,$(ALL_ARCH))

docker-build: ## Build docker image with the manager.
DOCKER_BUILDKIT=1 docker buildx build --load --platform linux/${ARCH} ${BUILD_ARGS} --build-arg ARCH=$(ARCH) -t $(IMAGE)-$(ARCH):$(IMG_TAG) .
MANIFEST_IMG=$(IMAGE)-$(ARCH) MANIFEST_TAG=$(IMG_TAG) $(MAKE) set-manifest-image
$(MAKE) set-manifest-pull-policy

docker-push-%: ## Docker push
$(MAKE) ARCH=$* docker-push
Expand All @@ -157,6 +159,8 @@ docker-push-manifest: ## Push the fat manifest docker image.
docker manifest create --amend ${IMG} $(shell echo $(ALL_ARCH) | sed -e "s~[^ ]*~$(IMAGE)\-&:$(IMG_TAG)~g")
@for arch in $(ALL_ARCH); do docker manifest annotate --arch $${arch} ${IMAGE}:${IMG_TAG} ${IMAGE}-$${arch}:${IMG_TAG}; done
docker manifest push --purge ${IMAGE}:${IMG_TAG}
MANIFEST_IMG=$(IMAGE) MANIFEST_TAG=$(IMG_TAG) $(MAKE) set-manifest-image
$(MAKE) set-manifest-pull-policy

.PHONY: docker-clean
docker-clean:
Expand Down

0 comments on commit 37c1cd7

Please sign in to comment.