Skip to content

Commit 8e1e534

Browse files
committed
CI: Ensure unofficial releases do not clobber latest Docker tag
1 parent b280be7 commit 8e1e534

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,10 @@ jobs:
491491
docker tag nipreps/nibabies:dev nipreps/nibabies:unstable
492492
docker push nipreps/nibabies:unstable
493493
if [[ -n "$CIRCLE_TAG" ]]; then
494-
docker tag nipreps/nibabies:dev nipreps/nibabies:latest
495-
docker push nipreps/nibabies:latest
494+
if [[ ! "$CIRCLE_TAG" =~ .*(a|b|rc|dev|post)[0-9]+ ]]; then
495+
docker tag nipreps/nibabies:dev nipreps/nibabies:latest
496+
docker push nipreps/nibabies:latest
497+
fi
496498
docker tag nipreps/nibabies:dev nipreps/nibabies:$CIRCLE_TAG
497499
docker push nipreps/nibabies:$CIRCLE_TAG
498500
fi

0 commit comments

Comments
 (0)