From 123426217d5706b9fa9ff8ee369095223c8fba7b Mon Sep 17 00:00:00 2001 From: Leigh <351529+leighmcculloch@users.noreply.github.com> Date: Wed, 30 Sep 2026 15:09:26 +0000 Subject: [PATCH] Fail .image.json build when a pipeline stage fails Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 6ea9a6e7..020aec07 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ TAG?=latest # Process images.json through the images-resolve-inherits and images-with-extras scripts IMAGE_JSON=.image.json +.DELETE_ON_ERROR: +.image.json: SHELL=/bin/bash +.image.json: .SHELLFLAGS=-o pipefail -c .image.json: images.json .scripts/images-resolve-inherits .scripts/images-with-extras < images.json .scripts/images-resolve-inherits | jq '.[] | select(.tag == "$(TAG)") | [ . ]' | .scripts/images-with-extras | jq '.[]' > $@