Files
kuboard-press/build.sh
huanqing.shao 9d463d9db5 remove docs
2019-07-31 19:40:56 +08:00

17 lines
320 B
Bash
Executable File

#!/bin/bash
datetime=`date +%Y%m%d-%H%M%S`
echo $datetime
tag=eipwork/kuboard-press
npm install --registry=https://registry.npm.taobao.org
npm run 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