From 04881a7f67fe18b6c123cd8821158a42fa552768 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Mon, 18 Aug 2025 18:44:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BC=96=E8=AF=91=E5=92=8C=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-backend.sh | 3 +++ build-frontend.sh | 3 +++ build.sh | 9 +++++---- cpto50.sh | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 build-backend.sh create mode 100644 build-frontend.sh create mode 100644 cpto50.sh diff --git a/build-backend.sh b/build-backend.sh new file mode 100644 index 0000000..467eeea --- /dev/null +++ b/build-backend.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +docker exec build-image-dev-env-1 /workspace/projects/agt-build/build.sh backend \ No newline at end of file diff --git a/build-frontend.sh b/build-frontend.sh new file mode 100644 index 0000000..3542ae3 --- /dev/null +++ b/build-frontend.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +docker exec build-image-dev-env-1 /workspace/projects/agt-build/build.sh frontend \ No newline at end of file diff --git a/build.sh b/build.sh index e721ce0..3b0ce60 100644 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #!/bin/sh +base_dir=/workspace/projects [ -z "$2"] && branch='main' || branch=$2 # 使用说明,用来提示输入参数 @@ -9,18 +10,18 @@ usage() { } backend(){ - cd ../agt-cloud + cd ${base_dir}/agt-cloud git pull mvn clean package -Dmaven.test.skip=true - cd ../agt-build + cd ${base_dir}/agt-build } # 启动程序模块(必须) frontend(){ - cd ../agt-web + cd ${base_dir}/agt-web git pull pnpm build:antd - cd ../agt-build + cd ${base_dir}/agt-build } diff --git a/cpto50.sh b/cpto50.sh new file mode 100644 index 0000000..68a587e --- /dev/null +++ b/cpto50.sh @@ -0,0 +1,38 @@ + +#!/bin/bash + +latest_jar_file=./projects/agt-cloud/agt-server/target/agt-server.jar +latest_dist_file=./projects/agt-web/apps/web-antd/dist.zip +server_ip_50=192.168.9.50 +debs_rel_dir=/opt/agt/ +passwd=admin123 + +if [ -n "${latest_jar_file}" ]; then + expect <