From 895385f218023a7dea7a9e0cfb9e4c59984d283b Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 20 Jun 2023 16:17:27 +0200 Subject: [PATCH] Add more logging to podman check --- podman-update-check | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/podman-update-check b/podman-update-check index 2aaf973..e14aeb6 100755 --- a/podman-update-check +++ b/podman-update-check @@ -28,13 +28,15 @@ def get_images [] { export def needs_update [] { let data = $in let name_parts = ( $data.Name | split row "/" --number 2 ) - let host = ( $name_parts | first ) + let registry = ( $name_parts | first ) let image = ( $name_parts | last | split row ":" | get 0 ) let digest = $data.Id + print $"Checking if ($image) has updates on ($registry)" - if $host == "docker.io" { + if $registry == "docker.io" { ( dockerhub get_image_digest $image ) != $digest } else { + print $"Host ($registry) is not supported" false } }