18 lines
339 B
Bash
Executable File
18 lines
339 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
|
|
echo pushded $tag:$datetime
|
|
fi
|