check if tags exist
This commit is contained in:
7
check.sh
7
check.sh
@@ -2,7 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
BASE_LAYERS="$(skopeo inspect $1 | jq '.Layers')"
|
||||
DERIVED_LAYERS="$(skopeo inspect $2 | jq '.Layers')"
|
||||
|
||||
jq '.base - .derived | .!=[]' <<< "{\"base\": $BASE_LAYERS, \"derived\": $DERIVED_LAYERS}"
|
||||
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 '.==[]'
|
||||
|
||||
Reference in New Issue
Block a user