feat: 编译和上传脚本
This commit is contained in:
9
build.sh
9
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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user