mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 14:31:47 +01:00
Use digest as comparison footprint (#269)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user