From 70ff6027849a61b5d7aae63dafd1131b6a6f56c7 Mon Sep 17 00:00:00 2001 From: Antti Kervinen Date: Mon, 12 Feb 2024 18:26:53 +0200 Subject: [PATCH] Makefile: stop image building on docker/compiler errors Signed-off-by: Antti Kervinen --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f8324e482..568b773af 100644 --- a/Makefile +++ b/Makefile @@ -229,9 +229,9 @@ image.%: esac; \ bin=$(patsubst image.%,%,$@); \ tag=$(patsubst image.%,%,$@); \ - $(DOCKER_BUILD) . -f "$$dir/Dockerfile" \ + $(DOCKER_BUILD) . -f "$$dir/Dockerfile" \ --build-arg GO_VERSION=$(GO_VERSION) \ - -t $(IMAGE_REPO)$$tag:$(IMAGE_VERSION); \ + -t $(IMAGE_REPO)$$tag:$(IMAGE_VERSION) || exit $$?; \ NRI_IMAGE_INFO=`$(DOCKER) images --filter=reference=$${tag} --format '{{.ID}} {{.Repository}}:{{.Tag}} (created {{.CreatedSince}}, {{.CreatedAt}})' | head -n 1`; \ NRI_IMAGE_ID=`awk '{print $$1}' <<< "$${NRI_IMAGE_INFO}"`; \ NRI_IMAGE_REPOTAG=`awk '{print $$2}' <<< "$${NRI_IMAGE_INFO}"`; \