diff --git a/pkg/compose/build.go b/pkg/compose/build.go index 4977377316..5ab257dd2c 100644 --- a/pkg/compose/build.go +++ b/pkg/compose/build.go @@ -138,8 +138,8 @@ func (s *composeService) ensureImagesExists(ctx context.Context, project *types. if project.Services[i].Labels == nil { project.Services[i].Labels = types.Labels{} } - project.Services[i].CustomLabels[api.ImageDigestLabel] = digest - project.Services[i].CustomLabels[api.ImageNameLabel] = service.Image + project.Services[i].CustomLabels.Add(api.ImageDigestLabel, digest) + project.Services[i].CustomLabels.Add(api.ImageNameLabel, service.Image) } } return nil