#!/bin/bash set -e TAGS=$((skopeo list-tags $1 || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags') echo $TAGS | jq '"Tag not found: "+ .[]' RESULT=$($TAGS | jq '.==[]') if $RESULT == "true" then echo "All images found" fi echo exist=$RESULT >> $GITHUB_OUTPUT