dotnet / docker-tools

This is a repo to house some common tools for our various docker repos.
MIT License
122 stars 46 forks source link

Annotation ingestion #1373

Closed mthalman closed 1 month ago

mthalman commented 1 month ago

The logic in https://github.com/dotnet/docker-tools/pull/1367 for waiting for MAR ingestion of annotations is incorrect. The input to that command as it was defined is using the digests of the images to be annotated. It should be using the digests of the annotations that were created. This can be just a flat list of digests. There's no need for structured data here.

To do this, I've modified the AnnotateEolDigestsCommand class to output a file containing the list of annotation digests that were created. This is then fed to the WaitForMarAnnotationIngestionCommand so that it can query the correct digest values.