Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
test: fix fedora CURRENT_COMPOSE_ID unbound issue
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaofeng Wang <[email protected]>
  • Loading branch information
henrywang committed May 14, 2024
1 parent 0673fa7 commit 497eb87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/shared_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"')
Expand Down

0 comments on commit 497eb87

Please sign in to comment.