#!/bin/bash

HOST_NAME=172.18.101.172
# 每次发版都需要改的版本号
APP_VERSION=0.0.1

yarn build

APP_NAME=gdtelgztelschoolcenterui
cd $APP_NAME
rm -rf ./nginx/html/*
cp -r ../../../../dist/* ./nginx/html/
docker build -t $HOST_NAME/gdtel-gztel-school-center/$APP_NAME:$APP_VERSION . && docker push $HOST_NAME/gdtel-gztel-school-center/$APP_NAME:$APP_VERSION
