ci: publish Docker images for bifrost-* branches

This commit is contained in:
guseggert 2021-08-26 14:03:01 -04:00 committed by Gus Eggert
parent ae09459e39
commit 3e49bb16b4
2 changed files with 8 additions and 1 deletions

View File

@ -428,7 +428,9 @@ workflows:
branches:
only:
- master
- feat/stabilize-dht
# the bifrst-* branches are used for deploying code that hasn't hit master yet (e.g. for testing)
- /^bifrost-.*/
# NOTE: CircleCI only builds tags if you explicitly filter for them. That
# also means tag-based jobs can only depend on other tag-based jobs, so we

View File

@ -67,6 +67,11 @@ elif [[ $GIT_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
pushTag "latest"
pushTag "release" # see: https://github.com/ipfs/go-ipfs/issues/3999#issuecomment-742228981
elif [[ $GIT_BRANCH =~ ^bifrost-.* ]]; then
# sanitize the branch name since docker tags have stricter char limits than git branch names
branch=$(echo "$GIT_BRANCH" | tr '/' '-' | tr --delete --complement '[:alnum:]-')
pushTag "${branch}-${BUILD_NUM}-${GIT_SHA1_SHORT}"
elif [ "$GIT_BRANCH" = "master" ]; then
pushTag "master-${BUILD_NUM}-${GIT_SHA1_SHORT}"
pushTag "master-latest"