From d78fc84ed0d7d2cf51ec8cc9b3e9680689f9f05a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Fri, 14 Jun 2024 20:14:13 +0200 Subject: [PATCH] feat: add testcontainers labels to the built images (#2579) * chore: add testcontainers labels to the built images * fix: update test --- request.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/request.go b/request.go index 71431176c1..4f00510039 100644 --- a/request.go +++ b/request.go @@ -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 }