我已经构建了我的应用程序并编写了一个 build.bat 文件用于自动构建并将我的图像推送到 docker hub
我的build.bat文件
@echo off
echo Building Image Config-server
cd ./backend/services/config-server
mvn compile com.google.cloud.tools:jib-maven-plugin:3.4.4:build -Dimage=niesuv/config-server
cd ../../../
echo --------------------------------------
echo Building Image Gateway-service
cd ./backend/services/gateway-service
mvn compile com.google.cloud.tools:jib-maven-plugin:3.4.4:build -Dimage=niesuv/gateway-service
cd ../../../
echo --------------------------------------
echo Building Image Post-service
cd ./backend/services/post-service
mvn compile com.google.cloud.tools:jib-maven-plugin:3.4.4:build -Dimage=niesuv/post-service
cd ../../../
echo --------------------------------------
echo Building Image S3-service
cd ./backend/services/s3-service
mvn compile com.google.cloud.tools:jib-maven-plugin:3.4.4:build -Dimage=niesuv/s3-service
cd ../../../
echo --------------------------------------
echo Building Image User-service
cd ./backend/services/user-service
mvn compile com.google.cloud.tools:jib-maven-plugin:3.4.4:build -Dimage=niesuv/user-service
它运行并完美推送第一个映像(配置服务器),但在那之后停止,这是日志
Building Image Config-server
...
...
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.780 s
[INFO] Finished at: 2024-11-01T22:50:31+07:00
[INFO] ------------------------------------------------------------------------
可以帮我修复这个错误吗?有没有比这种方式更好的自动化构建方法。
这是我的项目结构 项目名称 _后端 _服务 _configserver(springboot pj) _网关服务(springboot pj) _用户服务(springboot pj)
抱歉我的英语不好,描述也不好
我已经在cmd控制台中逐行运行命令行并完美运行