Skip to content

Commit 41e6b21

Browse files
committed
use skopeo container image
1 parent cc5a362 commit 41e6b21

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/check-images.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ IMAGE_NAME=${2:-"agentv3"}
4040
RE_PATTERN=${3:-""}
4141
IMAGE_PATH="${REGISTRY_URL}/${IMAGE_NAME}"
4242
CONTAINER_TOOL=docker
43-
44-
# Check for skopeo installation
45-
if ! command -v skopeo &> /dev/null; then
46-
echo "skopeo could not be found. Please install skopeo to proceed."
47-
exit 1
48-
fi
43+
SKOPEO_IMAGE="quay.io/skopeo/stable:latest"
4944

5045
# Check for docker installation
5146
if ! command -v ${CONTAINER_TOOL} &> /dev/null; then
@@ -57,11 +52,16 @@ if ! command -v ${CONTAINER_TOOL} &> /dev/null; then
5752
exit 1
5853
fi
5954
fi
55+
6056
echo "Using container tool: ${CONTAINER_TOOL}"
57+
${CONTAINER_TOOL} --version
58+
59+
echo "Getting skopeo tool..."
60+
${CONTAINER_TOOL} pull docker://${SKOPEO_IMAGE}
6161

6262
echo "Checking images in ${REGISTRY_URL}/${IMAGE_NAME}"
6363
echo "Saving all tags to ${IMAGE_NAME}_tags.txt"
64-
skopeo list-tags docker://${IMAGE_PATH} | jq -r '.Tags[]' > ${IMAGE_NAME}_tags.txt
64+
${CONTAINER_TOOL} run quay.io/skopeo/stable list-tags docker://${IMAGE_PATH} | jq -r '.Tags[]' > ${IMAGE_NAME}_tags.txt
6565
echo $(wc -l < ${IMAGE_NAME}_tags.txt) "tags fetched."
6666

6767
# Filter out tags that end with four or more digits (nightly/build tags)

0 commit comments

Comments
 (0)