dotnet / docker-tools

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

Image caching: query digest from registry instead of local image #1427

Closed mthalman closed 1 month ago

mthalman commented 2 months ago

Contributes to https://github.com/dotnet/docker-tools/issues/1417

In order to share the image caching logic with the generateMatrix command, it should not rely upon having access to pulled images. Today, the image caching logic assumes that all images to be inspected have been pulled locally. This is required for the build command anyway, so that assumption has always existed. But to use this logic for matrix generation, we don't want to have to pull down all of the images that we need to check. That would be very inefficient. Instead, the digest should be retrieved by querying the registry.

dotnet-issue-labeler[bot] commented 2 months ago

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

dotnet-issue-labeler[bot] commented 2 months ago

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.