BAEL-5095 Dockerfile strategies for Git (#11348)

Co-authored-by: majewsk6 <krzysztof.majewski.km1@contractors.roche.com>
This commit is contained in:
Krzysztof Majewski 2021-10-18 18:48:13 +02:00 committed by GitHub
parent f5c27da41c
commit 3a2eee308c
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,4 @@
[submodule "project"]
path = project
url = https://github.com/eugenp/tutorials.git
branch = master

View File

@ -0,0 +1,13 @@
ADD . /project/
ADD /build/ /project/
ADD /output/project.jar /project/
ADD ssh-private-key /root/.ssh/id_rsa
RUN git clone git@github.com:eugenp/tutorials.git
ARG username=$GIT_USERNAME
ARG password=$GIT_PASSWORD
RUN git clone https://username:password@github.com:eugenp/tutorials.git
VOLUME /build/ /project/