Skip to content

Commit

Permalink
Fix verification of docker image in RH catalog
Browse files Browse the repository at this point in the history
There were API changes
  • Loading branch information
ldziedziul committed Feb 27, 2024
1 parent 9611818 commit 17484fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/publish-rhel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ wait_for_container_scan()
local SCAN_STATUS=$(echo "$IMAGE" | jq -r '.data[0].container_grades.status')
local IMAGE_CERTIFIED=$(echo "$IMAGE" | jq -r '.data[0].certified')

if [[ $SCAN_STATUS == "in progress" ]]; then
if [[ $SCAN_STATUS == "pending" ]]; then
echo "Scanning pending, waiting..."
elif [[ $SCAN_STATUS == "in progress" ]]; then
echo "Scanning in progress, waiting..."
elif [[ $SCAN_STATUS == "null" ]]; then
echo "Image is still not present in the registry!"
Expand Down

0 comments on commit 17484fc

Please sign in to comment.