@ -10,6 +10,8 @@ export def get_image_digest [image: string] {
| from json
| get config
| get digest
| split row ":"
| get 1
)
}
@ -30,10 +30,10 @@ export def needs_update [] {
let name_parts = ( $data.Name | split row "/" --number 2 )
let host = ( $name_parts | first )
let image = ( $name_parts | last | split row ":" | get 0 )
let digest = $data.Digest
let digest = $data.Id
if $host == "docker.io/" {
( dockerhub get_image_digest $image ) == digest
if $host == "docker.io" {
( dockerhub get_image_digest $image ) != $digest
} else {
false