Skip to content

Commit

Permalink
fix(run-test-workflow.sh): add check for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
violetbrina committed Jan 9, 2025
1 parent a4cf2d5 commit ed50fd7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cpg_flow_test/run-test-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,17 @@ if [[ -n $(git diff) ]]; then
exit 1
fi

# Check that the docker image can be pulled
IMAGE="australia-southeast1-docker.pkg.dev/cpg-common/$IMAGE_TAG"
if [ docker pull "$IMAGE" ]; then
echo "Docker image exists"
else
echo "Could not pull image $IMAGE"
exit 1
fi

echo "analysis-runner
--image "australia-southeast1-docker.pkg.dev/cpg-common/$IMAGE_TAG"
--image "$IMAGE"
--dataset "fewgenomes"
--description "cpg-flow_test"
--access-level "test"
Expand All @@ -33,7 +42,7 @@ echo "analysis-runner
workflow.py"

analysis-runner \
--image "australia-southeast1-docker.pkg.dev/cpg-common/$IMAGE_TAG" \
--image "$IMAGE" \
--dataset "fewgenomes" \
--description "cpg-flow_test" \
--access-level "test" \
Expand Down

0 comments on commit ed50fd7

Please sign in to comment.