Skip to content

Commit 1159152

Browse files
MajewskiKrzysztofmajewsk6
andauthored
BAEL-5095 Dockerfile strategies for Git (eugenp#11348)
Co-authored-by: majewsk6 <[email protected]>
1 parent 1a04292 commit 1159152

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "project"]
2+
path = project
3+
url = https://github.com/eugenp/tutorials.git
4+
branch = master
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ADD . /project/
2+
ADD /build/ /project/
3+
ADD /output/project.jar /project/
4+
5+
ADD ssh-private-key /root/.ssh/id_rsa
6+
RUN git clone [email protected]:eugenp/tutorials.git
7+
8+
ARG username=$GIT_USERNAME
9+
ARG password=$GIT_PASSWORD
10+
RUN git clone https://username:[email protected]:eugenp/tutorials.git
11+
12+
VOLUME /build/ /project/
13+

0 commit comments

Comments
 (0)