Skip to content

Commit

Permalink
reuse image on workflow reruns
Browse files Browse the repository at this point in the history
  • Loading branch information
zainasir committed Jan 9, 2025
1 parent 64221f4 commit 4236dba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ commands:
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" ] && [ "<<parameters.push>>" = "true" ]; then
echo "Image already exists. Skipping build step!"
if [ $TAG_FOUND = "$DOCKER_TAG-web-shenandoah" ]; then
echo "Image already exists. Pulling remote image and skipping build step!"
docker pull $DOCKER_REPO:$DOCKER_TAG-web-shenandoah
exit 0
fi
cd cbioportal-test
Expand Down

0 comments on commit 4236dba

Please sign in to comment.