diff --git a/pkg/compose/build.go b/pkg/compose/build.go index bc3d61f1d..c9bb56e0b 100644 --- a/pkg/compose/build.go +++ b/pkg/compose/build.go @@ -141,7 +141,7 @@ func (s *composeService) ensureImagesExists(ctx context.Context, project *types. if project.Services[i].Labels == nil { project.Services[i].Labels = types.Labels{} } - project.Services[i].Labels[api.ImageDigestLabel] = digest + project.Services[i].CustomLabels[api.ImageDigestLabel] = digest project.Services[i].Image = image } }