nightingale1/docker/build.sh

20 lines
271 B
Bash
Raw Normal View History

2021-11-28 18:57:49 +08:00
#!/bin/sh
if [ $# -ne 1 ]; then
echo "$0 <tag>"
exit 0
fi
tag=$1
echo "tag: ${tag}"
2021-12-07 13:50:42 +08:00
rm -rf n9e pub
cp ../n9e .
cp -r ../pub .
docker build -t nightingale:${tag} .
2021-11-28 18:57:49 +08:00
docker tag nightingale:${tag} ulric2019/nightingale:${tag}
docker push ulric2019/nightingale:${tag}