support pass customized repo

Signed-off-by: zackzhang <zackzhang@yunify.com>
This commit is contained in:
zackzhang
2021-01-05 16:18:13 +08:00
parent 4a11a50544
commit 324f4aebbb

View File

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