From 8e816f6a2b7ecc46c2513d4bae1e67f50baf7b0d Mon Sep 17 00:00:00 2001 From: JM Huibonhoa Date: Tue, 16 Sep 2025 12:14:50 -0400 Subject: [PATCH] fix: use imagetools to retag pushed image to avoid missing local image issue Signed-off-by: JM Huibonhoa --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 836a459..08d9036 100644 --- a/Makefile +++ b/Makefile @@ -240,10 +240,8 @@ docker-build: ## Build docker image with the manager. .PHONY: docker-tag-latest docker-tag-latest: ## Tag the built image as 'latest' and push it @echo "Tagging image as 'latest'..." - @docker tag ${CONTROLLER_IMG} $(DOCKER_REGISTRY)/$(DOCKER_REPO)/$(CONTROLLER_IMAGE_NAME):latest - @echo "Pushing 'latest' tag..." - @docker push $(DOCKER_REGISTRY)/$(DOCKER_REPO)/$(CONTROLLER_IMAGE_NAME):latest - @echo "Latest tag pushed successfully" + @$(DOCKER_BUILDER) imagetools create --tag $(DOCKER_REGISTRY)/$(DOCKER_REPO)/$(CONTROLLER_IMAGE_NAME):latest $(CONTROLLER_IMG) + @echo "Latest tag created successfully" .PHONY: docker-push docker-push: ## Push docker image with the manager.