#https://cr.console.aliyun.com/repository/cn-hangzhou/digitalhuman/talkinghead/details?accounttraceid=48c50b5dc53048c0abbf09a986e90d74szme IMAGE_REPOSITORY_URL=registry.cn-hangzhou.aliyuncs.com/digitalhuman/talkinghead IMAGE_REPOSITORY_HOST=registry.cn-hangzhou.aliyuncs.com IMAGE_TAG=$TAG BRANCH2=$BRANCH cut_branch=$(echo "$BRANCH2" | cut -c1-2) if [ $cut_branch = "v1" ]; then echo "$BRANCH" else BRANCH2=$(echo "$BRANCH" | sed 's#.*/##') echo "$BRANCH2" fi commidit=$GIT_COMMIT Prefix=$(echo $commidit | cut -c1-8) docker login $IMAGE_REPOSITORY_HOST --username 274546966@qq.com --password xxxxx docker build --build-arg REQUIREMENTS_FILE=${REQUIREMENTS_FILE} -t $IMAGE_REPOSITORY_URL:$IMAGE_TAG-$BUILD_NUMBER-$BRANCH2 docker push $IMAGE_REPOSITORY_URL:$IMAGE_TAG-$BUILD_NUMBER-$BRANCH2