Files
kuboard-press/build.sh
huanqing.shao 9c1cd36e26 deploy 脚本
2019-08-29 16:38:38 +08:00

17 lines
322 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