Files
kuboard-press/build.sh
huanqing.shao 8933832f3f v2.0.0.3
2020-06-13 16:26:32 +08:00

17 lines
311 B
Bash
Executable File

#!/bin/bash
datetime=`date +%Y%m%d-%H%M%S`
# echo $datetime
tag=swr.cn-east-2.myhuaweicloud.com/kuboard/kuboard-press
yarn install
yarn docs:build
docker build -t $tag:latest .
if test $datetime != ""; then
# docker push $tag:latest
docker tag $tag:latest $tag:$datetime
docker push $tag:$datetime
fi