Skip to content

Commit

Permalink
Merge pull request #11277 from cBioPortal/fix/apitest-docker-build
Browse files Browse the repository at this point in the history
Improve circleci api tests by removing redundant image builds
  • Loading branch information
zainasir authored Dec 12, 2024
2 parents fa1e4f3 + 5128ae5 commit 5008d5f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,14 @@ jobs:
environment:
DOCKER_REPO: cbioportal/cbioportal-dev
command: |
cd cbioportal-test
export DOCKER_TAG=$CIRCLE_SHA1
URL="https://hub.docker.com/v2/repositories/cbioportal/cbioportal-dev/tags/$DOCKER_TAG-web-shenandoah"
TAG_FOUND=$(curl -s $URL | jq -r .name)
if [ $TAG_FOUND = "$DOCKER_TAG-web-shenandoah" ]; then
echo "Image already exists. Skipping build step!"
exit 0
fi
cd cbioportal-test
./scripts/build-push-image.sh --src=/tmp/repos/cbioportal --push=true --skip_web_and_data=true
EXISTS=$(docker manifest inspect $DOCKER_REPO:$DOCKER_TAG-web-shenandoah > /dev/null; echo $?)
if [ $EXISTS -eq 0 ]; then
Expand Down

0 comments on commit 5008d5f

Please sign in to comment.