From 51d8899a4b92ac3aa11f3356e4575c3b8182a99e Mon Sep 17 00:00:00 2001 From: Matthias Schneider Date: Mon, 22 Apr 2024 08:38:13 +0200 Subject: [PATCH] fix: integration: fail on error when build with docker --- integration/images.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integration/images.go b/integration/images.go index 11fca9c8f8..67493b8a51 100644 --- a/integration/images.go +++ b/integration/images.go @@ -306,7 +306,10 @@ func (d *DockerFileBuilder) BuildImageWithContext(t *testing.T, config *integrat } timer := timing.Start(dockerfile + "_docker") - d.BuildDockerImage(t, imageRepo, dockerfilesPath, dockerfile, contextDir) + if err := d.BuildDockerImage(t, imageRepo, dockerfilesPath, dockerfile, contextDir); err != nil { + return err + } + timing.DefaultRun.Stop(timer) contextFlag := "-c"