Skip to content

Commit 785f4ed

Browse files
authored
fix: revise half-baked PR #1400
1 parent cffe77d commit 785f4ed

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.circleci/config.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,15 @@ jobs:
764764
no_output_timeout: 40m
765765
command: |
766766
docker push nipreps/mriqc:latest
767-
docker tag nipreps/mriqc nipreps/mriqc:$CIRCLE_TAG
768-
docker push nipreps/mriqc:$CIRCLE_TAG
767+
768+
# 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
769776
770777
workflows:
771778
version: 2

0 commit comments

Comments
 (0)