mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
added pipeline
This commit is contained in:
parent
a11c9c0a1a
commit
3a832a7b6a
2 changed files with 16 additions and 3 deletions
|
@ -6,7 +6,7 @@ WORKDIR /app
|
|||
RUN mvn package
|
||||
|
||||
# Minimal rintime image - only JRE
|
||||
# FROM gcr.io/distroless/java21-debian12 AS runtime
|
||||
# COPY --from=build /app/target/*.jar /app.jar
|
||||
FROM gcr.io/distroless/java21-debian12 AS runtime
|
||||
COPY --from=build /app/target/*.jar /app.jar
|
||||
ENTRYPOINT [ "java" ]
|
||||
CMD [ "-jar", "-Dspring.profiles.active=postgres", "/app.jar" ]
|
||||
CMD [ "-jar", "/app.jar" ]
|
||||
|
|
13
Jenkinsfile
vendored
Normal file
13
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
pipeline {
|
||||
agent {
|
||||
label 'docker'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkstyle') {
|
||||
steps {
|
||||
sh 'mvn checkstyle:checkstyle'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue