From c930a5bd6d8f086cda14d484b4d60b214b8377c1 Mon Sep 17 00:00:00 2001 From: fanxb Date: Mon, 18 Jul 2022 11:16:47 +0800 Subject: [PATCH] =?UTF-8?q?deploy:=E4=BF=AE=E6=94=B9build.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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