diff --git a/build.sh b/build.sh index c31015e..b2dbff6 100644 --- a/build.sh +++ b/build.sh @@ -8,4 +8,11 @@ touch openRenamerBackend/static/.gitkeep mv openRenamerFront/dist/* openRenamerBackend/static # docker镜像打包 -# docker build -t fleyx/open-renamer:0.3 . \ No newline at end of file +if [ ! -n $0 ]; then + echo "请传入版本号参数,如:bash build.sh 0.8" + return 0 +fi +# 单平台打包并推送 +#docker build -t fleyx/open-renamer:$0 --push . +# 多平台打包并推送 +docker buildx build -t fleyx/open-renamer:$0 --platform linux/amd64,linux/arm64 --push . \ No newline at end of file