mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 19:07:48 +08:00
wip: add branch filter
License: MIT Signed-off-by: Oli Evans <oli@tableflip.io>
This commit is contained in:
parent
8ff47e550c
commit
7c593bd84b
@ -369,7 +369,7 @@ workflows:
|
||||
- go-ipfs-http-client
|
||||
- ipfs-webui
|
||||
|
||||
# NOTE: As we need to pass the tag filter to all dependent jobs, this is pulled out into a seperate workflow.
|
||||
# NOTE: You have to opt in to get circleci to trigger builds for a tat. As it is required that you set the tag filter to all dependent jobs, this is pulled out into a seperate workflow.
|
||||
# see: https://circleci.com/docs/2.0/workflows/#executing-workflows-for-a-git-tag
|
||||
docker-on-tag:
|
||||
jobs:
|
||||
@ -377,9 +377,13 @@ workflows:
|
||||
filters:
|
||||
tags:
|
||||
only: /^v[0-9].*|^cluster.+/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
- docker-push:
|
||||
requires:
|
||||
- docker-build
|
||||
filters:
|
||||
tags:
|
||||
only: /^v[0-9].*|^cluster.+/
|
||||
branches:
|
||||
ignore: /.*/
|
||||
|
||||
@ -61,8 +61,8 @@ pushTag () {
|
||||
if [[ $GIT_TAG =~ ^v[0-9]+ ]]; then
|
||||
pushTag "$GIT_TAG"
|
||||
|
||||
elif [[ $GIT_TAG =~ ^cluster ]]; then
|
||||
pushTag "$GIT_TAG"
|
||||
elif [[ $GIT_BRANCH =~ ^cluster ]]; then
|
||||
pushTag "$GIT_BRANCH"
|
||||
|
||||
elif [ "$GIT_BRANCH" = "feat/stabilize-dht" ]; then
|
||||
pushTag "bifrost-${BUILD_NUM}-${GIT_SHA1_SHORT}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user