Commit 674be45f authored by Lückemeyer's avatar Lückemeyer
Browse files

externalized build number from pipeline as variable BUILD_NUMBER

parent 467730ee
...@@ -29,6 +29,7 @@ ARG AUSER=appuser ...@@ -29,6 +29,7 @@ ARG AUSER=appuser
ARG AGID=137 ARG AGID=137
ENV USER=$AUSER ENV USER=$AUSER
ENV GID=$AGID ENV GID=$AGID
ARG BUILD_NUMBER=
RUN addgroup -g $GID -S docker RUN addgroup -g $GID -S docker
RUN adduser --no-create-home -u 1000 -G docker -D $USER RUN adduser --no-create-home -u 1000 -G docker -D $USER
...@@ -40,7 +41,7 @@ RUN mkdir /data && \ ...@@ -40,7 +41,7 @@ RUN mkdir /data && \
VOLUME /data VOLUME /data
COPY --chown=1000:$GID target/dta-backend.jar app.jar COPY --chown=1000:$GID target/dta-backend-$BUILD_NUMBER.jar app.jar
USER 1000:$GID USER 1000:$GID
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</parent> </parent>
<groupId>de.hftstuttgart</groupId> <groupId>de.hftstuttgart</groupId>
<artifactId>dta-backend</artifactId> <artifactId>dta-backend</artifactId>
<version>${buildNumber}</version> <version>${env.BUILD_NUMBER}</version>
<name>dta-backend</name> <name>dta-backend</name>
<description>Dockerized test agent for moodle</description> <description>Dockerized test agent for moodle</description>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment