Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to lookup cached entrypoint by digest, if possible
Today, when the step's image is not specified by digest (i.e., most of the time), we issue an image pull to get the image's entrypoint, then cache it. This means that when the step isn't specified by digest (i.e., most of the time) we hit the remote registry, and can hit DockerHub's rate limits. With this change, we'll issue a HEAD request to the registry to first lookup the digest of the image, then see if we already have the entrypoint cached by that digest. If the HEAD request fails or the entrypoint isn't found by image digest, we proceed as normal with the image pull.
- Loading branch information