Skip to content

Commit

Permalink
CI: Ensure unofficial releases do not clobber latest Docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mgxd committed Jan 9, 2025
1 parent b280be7 commit 8e1e534
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,10 @@ jobs:
docker tag nipreps/nibabies:dev nipreps/nibabies:unstable
docker push nipreps/nibabies:unstable
if [[ -n "$CIRCLE_TAG" ]]; then
docker tag nipreps/nibabies:dev nipreps/nibabies:latest
docker push nipreps/nibabies:latest
if [[ ! "$CIRCLE_TAG" =~ .*(a|b|rc|dev|post)[0-9]+ ]]; then
docker tag nipreps/nibabies:dev nipreps/nibabies:latest
docker push nipreps/nibabies:latest
fi
docker tag nipreps/nibabies:dev nipreps/nibabies:$CIRCLE_TAG
docker push nipreps/nibabies:$CIRCLE_TAG
fi
Expand Down

0 comments on commit 8e1e534

Please sign in to comment.