From 71f4e9d6daa9b1b5e0f40fef066a658f32561d1f Mon Sep 17 00:00:00 2001 From: amandilaras Date: Thu, 18 Jan 2024 15:11:19 +0200 Subject: [PATCH] add repo remote url --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f44403..8df27a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ ####################################### Build stage ####################################### -FROM maven:3.6.3-openjdk-11-slim AS build-stage +FROM maven:3.6.3-openjdk-11-slim COPY . /build/ WORKDIR /build/ -RUN mvn clean package -DskipTests +RUN mvn clean package -DskipTests -Dmaven.repo.remote="https://crepo.cite.gr/repository/cite-maven/" ARG CREPO_BINARIES_REPO_URL ARG CREPO_BINARIES_CREDENTIAL @@ -15,4 +15,4 @@ ENV BUILD_VERSION=$BUILD_VERSION RUN curl --location --request PUT "${CREPO_BINARIES_REPO_URL}opendmp/repository-jars/zenodo/zenodo-deposit-${BUILD_VERSION}.jar" \ --header "Authorization: Basic ${CREPO_BINARIES_CREDENTIAL}" \ --header "Content-Type: application/json" \ ---data-binary "@/build/target/repositorydepositzenodo-1.0.0-SNAPSHOT.jar" \ No newline at end of file +--data-binary "@/build/target/repositorydepositzenodo-2.0.0.jar" \ No newline at end of file