CI: simplified workflow with pre-built CI image
Build and Deploy / build-and-deploy (push) Failing after 15m4s
Build and Deploy / build-and-deploy (push) Failing after 15m4s
This commit is contained in:
@@ -15,6 +15,9 @@ jobs:
|
|||||||
git clone http://172.17.0.1:3000/kurihada/auth-backend.git .
|
git clone http://172.17.0.1:3000/kurihada/auth-backend.git .
|
||||||
git checkout ${{ github.sha }}
|
git checkout ${{ github.sha }}
|
||||||
|
|
||||||
|
- name: Build with Maven
|
||||||
|
run: mvn clean install -Dmaven.test.skip=true
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: docker build -t auth-backend:latest .
|
run: docker build -t auth-backend:latest .
|
||||||
|
|
||||||
|
|||||||
+1
-11
@@ -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
|
FROM openjdk:21
|
||||||
|
|
||||||
WORKDIR /app
|
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
|
EXPOSE 9001
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user