diff --git a/bin/push-docker-tags.sh b/bin/push-docker-tags.sh index faee3998631..464a0f8942b 100755 --- a/bin/push-docker-tags.sh +++ b/bin/push-docker-tags.sh @@ -6,7 +6,7 @@ # A bit like dockerhub autobuild config, but somewhere we can version control it. # # The `docker-build` job in .circleci/config.yml builds the current commit -# in docker and tags it as ipfs/go-ipfs:wip +# in docker and tags it as ipfs/go-ipfs:wip # # Then the `docker-publish` job runs this script to decide what tag, if any, # to publish to dockerhub. @@ -59,9 +59,13 @@ pushTag () { fi } -if [[ $GIT_TAG =~ ^v[0-9]+ ]]; then +if [[ $GIT_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+-rc ]]; then + pushTag "$GIT_TAG" + +elif [[ $GIT_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then pushTag "$GIT_TAG" pushTag "latest" + pushTag "release" # see: https://github.com/ipfs/go-ipfs/issues/3999#issuecomment-742228981 elif [ "$GIT_BRANCH" = "feat/stabilize-dht" ]; then pushTag "bifrost-${BUILD_NUM}-${GIT_SHA1_SHORT}"