Skip to content

Commit

Permalink
Makefile: stop image building on docker/compiler errors
Browse files Browse the repository at this point in the history
Signed-off-by: Antti Kervinen <[email protected]>
  • Loading branch information
askervin authored and klihub committed Feb 12, 2024
1 parent 876610d commit 70ff602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`; \
Expand Down

0 comments on commit 70ff602

Please sign in to comment.