BAEL-5095 Dockerfile strategies for Git (#11348)

Co-authored-by: majewsk6 <[email protected]>
This commit is contained in:
Krzysztof Majewski
2021-10-18 09:48:13 -07:00
committed by GitHub
co-authored by majewsk6
parent f5c27da41c
commit 3a2eee308c
2 changed files with 17 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
[submodule "project"]
path = project
url = https://github.com/eugenp/tutorials.git
branch = master
+13
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 [email protected]:eugenp/tutorials.git
ARG username=$GIT_USERNAME
ARG password=$GIT_PASSWORD
RUN git clone https://username:[email protected]:eugenp/tutorials.git
VOLUME /build/ /project/