Skip to content

Commit

Permalink
fix: integration: fail on error when build with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mschneider82 committed Apr 22, 2024
1 parent a0105f6 commit 51d8899
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion integration/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 51d8899

Please sign in to comment.