Files
docker-check-tag-exists/check.sh
ClementTsang f5a7897e2a add check
2022-06-02 01:26:06 -04:00

8 lines
215 B
Bash
Executable File

#!/bin/bash
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}"