1
0

feat(all): 增加镜像打包适配

This commit is contained in:
2025-09-04 08:49:21 +08:00
parent 32b5407c81
commit 1fc8d3160c
7 changed files with 246 additions and 15 deletions

11
build.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
current_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd "$current_dir" || exit
version=$(awk -F '[<>]' '/<version>/ && !/<parent>/{print $3; exit}' pom.xml)
mvn clean deploy -N -D skipTests -s ~/.m2/settings-nas.xml
mvn -pl leopard-server clean package -D skipTests -s ~/.m2/settings-nas.xml
pnpm -C leopard-web clean && pnpm -C leopard-web build
docker build -t "leopard:latest" --build-arg VERSION="$version" .