Skip to content

Commit

Permalink
fix(run-test-workflow.sh): check manifest instead of pull
Browse files Browse the repository at this point in the history
  • Loading branch information
violetbrina committed Jan 9, 2025
1 parent 55debdb commit ba2abdb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpg_flow_test/run-test-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ba2abdb

Please sign in to comment.