mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-20 00:50:12 +01:00
fix tests, simplify and integrate credentials properly
This commit is contained in:
parent
3d21ea683c
commit
24cf0fd6a3
11 changed files with 209 additions and 141 deletions
|
|
@ -294,7 +294,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(ctx, *container.ImageInfo(), nil); err != nil {
|
||||
if match, err := digest.CompareDigest(ctx, container, opts.RegistryAuth); err != nil {
|
||||
log.Info("Could not do a head request, falling back to regulara pull.")
|
||||
log.Debugf("Reason: %s", err.Error())
|
||||
} else if match {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue