add REVISION on the 2nd build stage too

This commit is contained in:
Alexandros Mandilaras 2024-01-19 11:08:24 +02:00
parent 44d911b7e4
commit bfcba7520d
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,6 @@ ARG MAVEN_ACCOUNT_PSW
ARG REVISION
ARG PROFILE
ARG DEV_PROFILE_URL
ENV revision=$REVISION
ENV server_username=$MAVEN_ACCOUNT_USR
ENV server_password=$MAVEN_ACCOUNT_PSW
@ -27,6 +26,7 @@ RUN mvn -Drevision=${REVISION} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} c
######################################## Run Stage ########################################
FROM eclipse-temurin:21-jre-alpine
ARG REVISION
ENV SERVER_PORT=8080
EXPOSE ${SERVER_PORT}