Skip to content

Commit 600f582

Browse files
committed
[skip ci] split tag and image name, exit if image pull fails
1 parent 18406e9 commit 600f582

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/check-images.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ IMAGE_NAME=${2:-"agentv3"}
4040
RE_PATTERN=${3:-""}
4141
IMAGE_PATH="${REGISTRY_URL}/${IMAGE_NAME}"
4242
CONTAINER_TOOL=docker
43-
SKOPEO_IMAGE="quay.io/skopeo/stable:latest"
43+
SKOPEO_IMAGE="quay.io/skopeo/stable"
44+
SKOPEO_TAG="latest"
4445

4546
# Check for docker installation
4647
if ! command -v ${CONTAINER_TOOL} &> /dev/null; then
@@ -57,7 +58,7 @@ echo "Using container tool: ${CONTAINER_TOOL}"
5758
${CONTAINER_TOOL} --version
5859

5960
echo "Getting skopeo tool..."
60-
${CONTAINER_TOOL} pull ${SKOPEO_IMAGE}
61+
${CONTAINER_TOOL} pull ${SKOPEO_IMAGE}:${SKOPEO_TAG} || { echo "Failed to pull skopeo image"; exit 1; }
6162

6263
echo "Checking images in ${REGISTRY_URL}/${IMAGE_NAME}"
6364
echo "Saving all tags to ${IMAGE_NAME}_tags.txt"

0 commit comments

Comments
 (0)