# date=$(date +%Y%m%d%H%M%S)
# image="kcr.kingdee.com/ierp/ierp_prd/dev-ai-search:"v$date

image="swr.cn-north-1.myhuaweicloud.com/kingdee-ierp/mservice:ai-finance-v20210312"
echo "镜像名称：${image}"
echo "正在制作应用程序镜像......"
docker build -t ${image} .
echo "镜像制作完成"

echo "正在推送应用程序镜像......"
docker login -u cn-north-1@V5TOQH880FL1OXUKTUJR -p de4233bd29655254aae36f514a26213d30a118fa2756fd8bb517020c4e3e5d89 swr.cn-north-1.myhuaweicloud.com

docker push ${image}
echo "镜像推送完成"
