fix: integration: fail on error when build with docker (#3131)

This commit is contained in:
Matthias Schneider 2024-04-22 09:03:20 +02:00 committed by GitHub
parent d070187005
commit d251b81da2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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"