File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,7 @@ IMAGE_NAME=${2:-"agentv3"}
4040RE_PATTERN=${3:- " " }
4141IMAGE_PATH=" ${REGISTRY_URL} /${IMAGE_NAME} "
4242CONTAINER_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
5146if ! command -v ${CONTAINER_TOOL} & > /dev/null; then
@@ -57,11 +52,16 @@ if ! command -v ${CONTAINER_TOOL} &> /dev/null; then
5752 exit 1
5853 fi
5954fi
55+
6056echo " Using container tool: ${CONTAINER_TOOL} "
57+ ${CONTAINER_TOOL} --version
58+
59+ echo " Getting skopeo tool..."
60+ ${CONTAINER_TOOL} pull docker://${SKOPEO_IMAGE}
6161
6262echo " Checking images in ${REGISTRY_URL} /${IMAGE_NAME} "
6363echo " 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
6565echo $( wc -l < ${IMAGE_NAME} _tags.txt) " tags fetched."
6666
6767# Filter out tags that end with four or more digits (nightly/build tags)
You can’t perform that action at this time.
0 commit comments