Dockerfile update

This commit is contained in:
Diamantis Tziotzios 2022-12-06 16:46:01 +02:00
parent 2287bd5af9
commit 7a4ce739ee
1 changed files with 4 additions and 2 deletions

View File

@ -15,8 +15,10 @@ ENV server_username=$MAVEN_ACCOUNT_USR
ENV server_password=$MAVEN_ACCOUNT_PSW
COPY settings.xml /root/.m2/settings.xml
ONBUILD COPY keypair.asc /tmp/keypair.asc
RUN if [[[ -f "/tmp/keypair.asc" ]] ; then gpg --batch --import /tmp/keypair.asc ; fi
COPY keypair.asc /tmp/keypair.asc
RUN if [ "$PROFILE" = "ossrh" ]; then \
gpg --batch --import /tmp/keypair.asc; \
fi
WORKDIR /build/