设置静态资源过期时间为 1d

This commit is contained in:
huanqing.shao
2020-03-17 09:04:31 +08:00
parent 1da6f50b74
commit 147d04b73d
6 changed files with 11 additions and 17 deletions

View File

@ -6,11 +6,14 @@ tag=eipwork/kuboard-press
npm install --registry=https://registry.npm.taobao.org
npm run docs:build
# docker build -t $tag:latest .
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
if test $datetime != ""; then
# docker push $tag:latest
docker tag $tag:latest $tag:$datetime
docker push $tag:$datetime
fi