#!/bin/bash
set -o errexit

# to keep the git history of versions
tag=1.0.0

# echo $1
# if [ [ $1 -z ] ]; then
#   echo 'tag is not set'
# if

docker build . -t registry.cn-shenzhen.aliyuncs.com/online_exam/web:$tag
docker push registry.cn-shenzhen.aliyuncs.com/online_exam/web:$tag