Closed lbussell closed 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.
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.
Fixes #1424
Instead of running
BuildImagesAsync()
under authentication the whole time, defer login to only when we need to pull cached images in the case of a cache hit. That should be the only place we need credentials during the actual building of images, since we already pulled the base images withPullBaseImagesAsync()
.This has the added benefit of running the rest of the build command without any Docker credentials, since they shouldn't be necessary (and should fail the build).