From 7e6585478a2b9bddd48dd328291b43c052d5cf92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikul=C3=A1=C5=A1=20=C5=A0=C5=A5astn=C3=BD?= Date: Mon, 25 Nov 2024 12:42:41 +0200 Subject: [PATCH] Fix building just one image with --all flag --- bap-builder/DockerMode.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bap-builder/DockerMode.go b/bap-builder/DockerMode.go index b0a3949..72196b4 100644 --- a/bap-builder/DockerMode.go +++ b/bap-builder/DockerMode.go @@ -41,7 +41,10 @@ func buildAllDockerImages(contextManager ContextManager) error { logger.Warn("Bug: multiple Dockerfile present for same image name %s", imageName) continue } - return buildSingleDockerImage(imageName, dockerfilePath[0]) + err = buildSingleDockerImage(imageName, dockerfilePath[0]) + if err != nil { + return err + } } return nil }