add revision to the jar file name

This commit is contained in:
Alexandros Mandilaras 2024-01-18 17:20:51 +02:00
parent e2bf6eaea6
commit 9e25c82763
1 changed files with 2 additions and 2 deletions

View File

@ -38,6 +38,6 @@ FROM eclipse-temurin:21-jre-alpine
ENV SERVER_PORT=8080
EXPOSE ${SERVER_PORT}
COPY --from=build-stage /build/web/target/repository-deposit-web.jar /app/repository-deposit-web.jar
COPY --from=build-stage /build/web/target/repository-deposit-web-${REVISION}.jar /app/repository-deposit-web-${REVISION}.jar
ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Dspring.profiles.active=${PROFILE}","-Djava.security.egd=file:/dev/./urandom","-jar","/app/repository-deposit-web.jar"]
ENTRYPOINT ["java","-Dspring.config.additional-location=file:/config/","-Dspring.profiles.active=${PROFILE}","-Djava.security.egd=file:/dev/./urandom","-jar","/app/repository-deposit-web-${REVISION}.jar"]