added pipeline

This commit is contained in:
xDepcio 2024-11-27 18:19:23 +01:00
parent a11c9c0a1a
commit 3a832a7b6a
2 changed files with 16 additions and 3 deletions

View file

@ -6,7 +6,7 @@ WORKDIR /app
RUN mvn package RUN mvn package
# Minimal rintime image - only JRE # Minimal rintime image - only JRE
# FROM gcr.io/distroless/java21-debian12 AS runtime FROM gcr.io/distroless/java21-debian12 AS runtime
# COPY --from=build /app/target/*.jar /app.jar COPY --from=build /app/target/*.jar /app.jar
ENTRYPOINT [ "java" ] ENTRYPOINT [ "java" ]
CMD [ "-jar", "-Dspring.profiles.active=postgres", "/app.jar" ] CMD [ "-jar", "/app.jar" ]

13
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,13 @@
pipeline {
agent {
label 'docker'
}
stages {
stage('Checkstyle') {
steps {
sh 'mvn checkstyle:checkstyle'
}
}
}
}