mirror of
https://github.com/containrrr/watchtower.git
synced 2026-02-01 05:01:48 +01:00
feat: pass context when fetching digests
This commit is contained in:
parent
b71eb2dec7
commit
9220b51665
5 changed files with 40 additions and 33 deletions
|
|
@ -335,7 +335,7 @@ func (client dockerClient) PullImage(ctx context.Context, container Container) e
|
|||
|
||||
log.WithFields(fields).Debugf("Checking if pull is needed")
|
||||
|
||||
if match, err := digest.CompareDigest(container, opts.RegistryAuth); err != nil {
|
||||
if match, err := digest.CompareDigest(ctx, container, opts.RegistryAuth); err != nil {
|
||||
headLevel := log.DebugLevel
|
||||
if client.WarnOnHeadPullFailed(container) {
|
||||
headLevel = log.WarnLevel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue