Skip to content

Commit

Permalink
skip image build with conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
zainasir committed Jan 9, 2025
1 parent ae3733c commit 64221f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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" ]; then
if [ $TAG_FOUND = "$DOCKER_TAG-web-shenandoah" ] && [ "<<parameters.push>>" = "true" ]; then
echo "Image already exists. Skipping build step!"
exit 0
fi
Expand Down

0 comments on commit 64221f4

Please sign in to comment.