CI: simplified workflow with pre-built CI image
Build and Deploy / build-and-deploy (push) Failing after 15m4s

This commit is contained in:
2026-06-02 10:21:42 +08:00
parent 3de5a1c86a
commit 846bf28f9a
2 changed files with 4 additions and 11 deletions
+1 -11
View File
@@ -1,17 +1,7 @@
# Stage 1: Build with Maven
FROM openjdk:21 AS builder
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN apt-get update && apt-get install -y maven && mvn clean install -Dmaven.test.skip=true
# Stage 2: Runtime
FROM openjdk:21
WORKDIR /app
COPY --from=builder /app/target/auth-backend-1.0.0.jar /app/
COPY target/auth-backend-1.0.0.jar /app/
EXPOSE 9001