Skip to content

Commit

Permalink
check for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
zainasir committed Jan 3, 2025
1 parent 0e2899e commit 5128f9c
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,19 @@ jobs:
name: Log in to Docker
command: |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
- run:
name: Wait for cbioportal docker images
command: |
URL="https://hub.docker.com/v2/repositories/$DEV_REPO/tags/$CIRCLE_SHA1-web-shenandoah"
while true; do
TAG_FOUND=$(curl -s $URL | jq -r .name)
if [ $TAG_FOUND = "$CIRCLE_SHA1-web-shenandoah" ]; then
echo "Image found!"
exit 0
fi
echo "Image not built yet. Retrying in 30 seconds..."
sleep 30
done
- run:
name: Run Docker Scout vulnerability test
command: |
Expand Down Expand Up @@ -424,6 +437,4 @@ workflows:
jobs:
- run_security_tests:
context:
- docker-scout
requires:
- build_push_image
- docker-scout

0 comments on commit 5128f9c

Please sign in to comment.