Skip to content

Commit 640b7fd

Browse files
authored
maint: Docker hub - push a 'experimental' tag instead of 'latest'
1 parent 699d169 commit 640b7fd

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.circleci/config.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -763,16 +763,13 @@ jobs:
763763
name: Deploy to Docker Hub
764764
no_output_timeout: 40m
765765
command: |
766-
docker push nipreps/mriqc:latest
767-
768-
# only tag & push if CIRCLE_TAG is set
766+
# only tag & push latest if CIRCLE_TAG is set
769767
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
768+
docker push nipreps/mriqc:latest
769+
770+
docker tag nipreps/mriqc nipreps/mriqc:"${CIRCLE_TAG:='experimental'}"
771+
docker push nipreps/mriqc:"$CIRCLE_TAG"
772+
echo "Pushed tag ${CIRCLE_TAG} to Docker Hub"
776773
777774
workflows:
778775
version: 2

0 commit comments

Comments
 (0)