From ba2abdba654f4d6f95e6e031124e414771f2c5c7 Mon Sep 17 00:00:00 2001 From: Sabrina Yan <9669990+violetbrina@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:26:26 +1100 Subject: [PATCH] fix(run-test-workflow.sh): check manifest instead of pull --- cpg_flow_test/run-test-workflow.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpg_flow_test/run-test-workflow.sh b/cpg_flow_test/run-test-workflow.sh index d05bdf9..6e27c62 100755 --- a/cpg_flow_test/run-test-workflow.sh +++ b/cpg_flow_test/run-test-workflow.sh @@ -25,10 +25,10 @@ fi # Check that the docker image can be pulled IMAGE="australia-southeast1-docker.pkg.dev/cpg-common/$IMAGE_TAG" -if docker pull "$IMAGE" > /dev/null 2>&1; then - echo "Docker image exists" +if docker manifest inspect "$IMAGE" > /dev/null 2>&1; then + echo "Docker image $IMAGE exists." else - echo "Could not pull image $IMAGE" + echo "Docker image $IMAGE does not exist. Please build the image before running this script." exit 1 fi