Use digest as comparison footprint (#269)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-02-08 20:18:30 +01:00
committed by GitHub
parent 6334e8af19
commit daeefb16b3

View File

@@ -185,7 +185,7 @@ func (di *Diun) runJob(job model.Job) (entry model.NotifEntry) {
if len(dbManifest.Name) == 0 {
entry.Status = model.ImageStatusNew
sublog.Info().Msg("New image found")
} else if !entry.Manifest.Created.Equal(*dbManifest.Created) {
} else if entry.Manifest.Digest.String() != dbManifest.Digest.String() {
entry.Status = model.ImageStatusUpdate
sublog.Info().Msg("Image update found")
} else {