dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
MIT License
175 stars 30 forks source link

Add `org.opencontainers.image.base.digest` label in addition to `name` #541

Closed baronfel closed 3 months ago

baronfel commented 5 months ago

Having the digest is required for some tools to do proper provenance tracking. We didn't add this before because it couldn't be easily expressed in the MSBuild targets, but we should auto-add the digest if the name is part of the logged set of Labels during the CreateNewImage task.