Skip to content

Commit

Permalink
feat: add testcontainers labels to the built images (#2579)
Browse files Browse the repository at this point in the history
* chore: add testcontainers labels to the built images

* fix: update test
  • Loading branch information
mdelapenya committed Jun 18, 2024
1 parent 9edacc7 commit d78fc84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ func (r *Request) BuildOptions() (types.ImageBuildOptions, error) {
buildOptions.Tags = []string{tag}
}

if !r.ShouldKeepBuiltImage() {
buildOptions.Labels = core.DefaultLabels(core.SessionID())
}

return buildOptions, nil
}

Expand Down

0 comments on commit d78fc84

Please sign in to comment.