Merge pull request #3250 from zackzhangkai/support-customized-repo

support pass customized repo
This commit is contained in:
KubeSphere CI Bot 2021-01-06 09:56:33 +08:00 committed by GitHub
commit f2e96bce7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -16,9 +16,15 @@ tag_for_branch() {
echo ${tag}
}
get_repo() {
local repo=$1
repo=${repo:-kubespheredev}
echo "$repo"
}
# push to kubespheredev with default latest tag
REPO=${REPO:-kubespheredev}
TAG=$(tag_for_branch $1)
TAG=$(tag_for_branch "$1")
REPO=$(get_repo "$2")
# Push image to dockerhub, need to support multiple push
cat ~/.docker/config.json | grep index.docker.io