#!/bin/bash

version=$1
tag=$2

imageName="mservice"



echo "push the mservice image to cloud.kingdee.com"

docker login -u 300017 -p Kingdee2016 kcr.kingdee.com
tags="${tag}/"$imageName":"$version
echo "tags::"$tags
echo "docker build -t "$tags  "."
docker build -t $tags  .
docker push $tags

echo "build docker image done."
