For Added version parameter to dockerfile
FROM maven:3.6.3-jdk-13 as build_jar
+ARG version="1.0-SNAPSHOT"
WORKDIR /jar
RUN yum install git -y
COPY pom.xml /jar/pom.xml
RUN mvn dependency:go-offline
COPY src/ /jar/src/
-# @todo #40:30min Propagate git tag
-# I.e. if docker image is based on version 1.5.0, the version should be propagated to the app jar
-# file.
-RUN mvn package -B --quiet
+RUN mvn versions:set -DnewVersion=${version} && mvn package -B --quiet
FROM adoptopenjdk/openjdk13:alpine-jre
LABEL description="Artipie is a binary repository managment tool."
