Skip to content

Commit ef9b2d2

Browse files
committed
test: do not build docker image if it already exists
Signed-off-by: Peter Wilcsinszky <[email protected]>
1 parent d6dc0da commit ef9b2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ deploy: manifests ## Deploy controller in the configured Kubernetes cluster in ~
7171

7272
.PHONY: docker-build
7373
docker-build: ## Build the docker image
74-
${DOCKER} build . -t ${IMG}
74+
docker image inspect ${IMG} && echo "docker image ${IMG} already built" || ${DOCKER} build . -t ${IMG}
7575
@echo "updating kustomize image patch file for manager resource"
7676
sed -i'' -e 's@image: .*@image: '"${IMG}"'@' ./config/default/manager_image_patch.yaml
7777

0 commit comments

Comments
 (0)