更新镜像打包脚本,修改用户名即可推送dockerhub

This commit is contained in:
monktan 2022-02-23 20:52:33 +08:00
parent a3d696d805
commit 77e4913afc

View File

@ -46,20 +46,20 @@ case $model in
;; ;;
esac esac
namespace="zlmediakit" namespace="tannzh"
packagename="zlm-mediaserver" packagename="zlmediakit"
case $type in case $type in
'build') 'build')
rm -rf ./build/CMakeCache.txt rm -rf ./build/CMakeCache.txt
# 以腾讯云账号为例 # 以腾讯云账号为例
docker build --network=host --build-arg MODEL=$model -t ccr.ccs.tencentyun.com/$namespace/$packagename:$model.$version . docker build --network=host --build-arg MODEL=$model -t $namespace/$packagename:$model.$version .
;; ;;
'push') 'push')
echo "push to dst registry" echo "push to dst registry"
# 以腾讯云账号为例 # 以腾讯云账号为例
docker login --username=default_name ccr.ccs.tencentyun.com docker login --username=tannzh
docker push ccr.ccs.tencentyun.com/$namespace/$packagename:$model.$version docker push $namespace/$packagename:$model.$version
;; ;;
*) *)
echo "unkonwn type" echo "unkonwn type"