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