#!/bin/bash

#set -x

REPOSITORY=ccr.ccs.tencentyun.com/pretool-hub/
IMAGE=
TAG=

###########################################

# build
#docker build -t "${IMAGE}:${TAG}" .

# tag
docker tag ${IMAGE}:${TAG} ${REPOSITORY}${IMAGE}:${TAG}

# login
docker login ccr.ccs.tencentyun.com --username=100002220828 -p'$WFds^T%s3s'

# push，需要登录
docker push ${REPOSITORY}${IMAGE}:${TAG}

# rmi
#docker rmi ${IMAGE}:${TAG}

echo ${REPOSITORY}${IMAGE}:${TAG}
