新增工作流3
Some checks failed
Build and Push to SmartParks Registry / 构建并推送镜像到仓库注册表 (push) Failing after 1m53s
Some checks failed
Build and Push to SmartParks Registry / 构建并推送镜像到仓库注册表 (push) Failing after 1m53s
This commit is contained in:
parent
78a33f408f
commit
515d473da0
@ -24,11 +24,7 @@ jobs:
|
||||
run: |
|
||||
echo "===== 开始Maven构建 ====="
|
||||
/maven/apache-maven-3.9.11/bin/mvn clean package -DskipTests
|
||||
echo "===== 验证构建结果 ====="
|
||||
if [ ! -d "./target" ] || [ -z "$(ls -A ./target/*.jar 2>/dev/null)" ]; then
|
||||
echo "错误:Maven构建未生成有效JAR包"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "===== Maven构建完成 ====="
|
||||
|
||||
- name: 构建并推送Docker镜像
|
||||
|
Loading…
Reference in New Issue
Block a user