Files
docker-check-tag-exists/check.sh
2023-12-08 13:51:08 +01:00

8 lines
213 B
Bash
Executable File

#!/bin/bash
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 '.==[]'