From 497eb8790300855a2162367724a8cf20702bfcfe Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Tue, 14 May 2024 21:59:27 +0800 Subject: [PATCH] test: fix fedora CURRENT_COMPOSE_ID unbound issue Signed-off-by: Xiaofeng Wang --- tools/shared_lib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/shared_lib.sh b/tools/shared_lib.sh index c8fab28..54fc1c9 100755 --- a/tools/shared_lib.sh +++ b/tools/shared_lib.sh @@ -52,9 +52,11 @@ function image_inspect { if [[ ${TIER1_IMAGE_URL} =~ fedora-bootc:40 ]]; then REDHAT_ID="fedora" REDHAT_VERSION_ID="40" + CURRENT_COMPOSE_ID="" elif [[ ${TIER1_IMAGE_URL} =~ fedora-bootc:41 ]]; then REDHAT_ID="fedora" REDHAT_VERSION_ID="41" + CURRENT_COMPOSE_ID="" elif [[ ${TIER1_IMAGE_URL} =~ bootc-image-builder ]]; then VERSION=$(skopeo inspect --tls-verify=false --creds "$QUAY_USERNAME":"$QUAY_PASSWORD" docker://"${TIER1_IMAGE_URL}" | jq -r '.Labels.version') REDHAT_ID=$(skopeo inspect --tls-verify=false docker://"${RHEL_REGISTRY_URL}/rhel9-rhel_bootc:rhel-${VERSION}" | jq -r '.Labels."redhat.id"')