mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
Merge pull request #8055 from ipfs/dont-docker-tag-rc-as-latest
chore: dont docker tag rc as latest
This commit is contained in:
commit
bcada84f2c
@ -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}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user