date=$(date +%Y%m%d%H%M%S)
# date=$(date +%Y%m%d)
image="kcr.kingdee.com/ierp/ierp_prd/dev-ai-finance:"v$date
echo "镜像名称：${image}"
echo "正在制作应用程序镜像......"
docker build -t ${image} .
echo "镜像制作完成"

echo "正在推送应用程序镜像......"
docker login -u 300017 -p Kingdee2016 kcr.kingdee.com
docker push ${image}
echo "镜像推送完成"
