#!/usr/bin/env bash # fine-digit-edu-webui-old VERSION=$(date "+%Y%m%d") set -ex \ && yarn build \ && docker build -f docker/Dockerfile \ -t registry.cn-shanghai.aliyuncs.com/frbbs/fine-digit-edu-webui-old:latest \ -t registry.cn-shanghai.aliyuncs.com/frbbs/fine-digit-edu-webui-old:"$VERSION" \ --build-arg DIST_DIR=dist \ . \ && docker push registry.cn-shanghai.aliyuncs.com/frbbs/fine-digit-edu-webui-old:latest \ && docker push registry.cn-shanghai.aliyuncs.com/frbbs/fine-digit-edu-webui-old:"$VERSION"