mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
fix(docker): use maven.test.skip=true so untracked test drift can't break the image
This commit is contained in:
parent
062b5169fa
commit
d8f9b04618
@ -33,7 +33,7 @@ COPY mateclaw-server/settings.xml /root/.m2/settings.xml
|
||||
WORKDIR /plugin-api
|
||||
COPY mateclaw-plugin-api/pom.xml ./pom.xml
|
||||
COPY mateclaw-plugin-api/src ./src
|
||||
RUN mvn install -DskipTests -q ${MAVEN_FLAGS}
|
||||
RUN mvn install -Dmaven.test.skip=true -q ${MAVEN_FLAGS}
|
||||
|
||||
# Pre-fetch mateclaw-server dependencies (uses mirror, so this won't hang)
|
||||
WORKDIR /build
|
||||
@ -44,7 +44,7 @@ RUN mvn dependency:go-offline -q ${MAVEN_FLAGS}
|
||||
COPY mateclaw-server/src ./src
|
||||
COPY --from=frontend-builder /static ./src/main/resources/static
|
||||
|
||||
RUN mvn package -DskipTests -q ${MAVEN_FLAGS}
|
||||
RUN mvn package -Dmaven.test.skip=true -q ${MAVEN_FLAGS}
|
||||
|
||||
# Stage 3 — Runtime
|
||||
#
|
||||
|
||||
Loading…
Reference in New Issue
Block a user