We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cffe77d commit 785f4edCopy full SHA for 785f4ed
.circleci/config.yml
@@ -764,8 +764,15 @@ jobs:
764
no_output_timeout: 40m
765
command: |
766
docker push nipreps/mriqc:latest
767
- docker tag nipreps/mriqc nipreps/mriqc:$CIRCLE_TAG
768
- docker push nipreps/mriqc:$CIRCLE_TAG
+
+ # only tag & push if CIRCLE_TAG is set
769
+ if [ -n "${CIRCLE_TAG:-}" ]; then
770
+ echo "Tagging and pushing ${CIRCLE_TAG}..."
771
+ docker tag nipreps/mriqc nipreps/mriqc:"$CIRCLE_TAG"
772
+ docker push nipreps/mriqc:"$CIRCLE_TAG"
773
+ else
774
+ echo "CIRCLE_TAG is undefined - skipping tagged push"
775
+ fi
776
777
workflows:
778
version: 2
0 commit comments