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

externalized build number from pipeline as variable BUILD_NUMBER

parent 467730ee
Showing with 3 additions and 2 deletions
+3 -2
......@@ -29,6 +29,7 @@ ARG AUSER=appuser
ARG AGID=137
ENV USER=$AUSER
ENV GID=$AGID
ARG BUILD_NUMBER=
RUN addgroup -g $GID -S docker
RUN adduser --no-create-home -u 1000 -G docker -D $USER
......@@ -40,7 +41,7 @@ RUN mkdir /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
......
......@@ -10,7 +10,7 @@
</parent>
<groupId>de.hftstuttgart</groupId>
<artifactId>dta-backend</artifactId>
<version>${buildNumber}</version>
<version>${env.BUILD_NUMBER}</version>
<name>dta-backend</name>
<description>Dockerized test agent for moodle</description>
......
Supports Markdown
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