remove debu output
Some checks failed
Test / test-always-true (push) Failing after 5s
Test / test-always-false (push) Failing after 5s

This commit is contained in:
2023-12-08 20:33:29 +01:00
parent 18a82250d2
commit 1050a93015

View File

@@ -1,25 +1,15 @@
#!/bin/bash
set -e
echo "$1"
echo "$2"
CHECK=$( echo -n "$2" | sed -e "s#$1:##g" | jq -R -s 'split("\n")' )
echo $CHECK
EXISTING=$( skopeo list-tags docker://$1 || echo '{"Tags":[]}' )
echo $EXISTING
TAGS=$( jq '.check - .existing.Tags' <<< "{\"check\": $CHECK, \"existing\": $EXISTING}" )
echo $TAGS
echo $TAGS | jq '"Tag not found: "+ .[]'
RESULT=$(echo $TAGS | jq '.==[]')
if "$RESULT" == "true"
then
echo "All images found"
echo "All tags found"
fi
echo exist=$RESULT >> $GITHUB_OUTPUT