This commit is contained in:
2023-12-08 14:09:33 +01:00
parent 2707de296c
commit a711f6e5cb
2 changed files with 12 additions and 8 deletions

View File

@@ -2,6 +2,11 @@
set -e
TAGS=$((skopeo list-tags docker://gitea.phadric.de/andreas/sambaa || echo '{"Tags":[]}' )| jq '["alatest","latest"] - .Tags')
#echo $TAGS | jq '"Tag not found: "+ .[]'
echo $TAGS | jq '.==[]'
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