BAEL-5095 Dockerfile strategies for Git (#11348)
Co-authored-by: majewsk6 <krzysztof.majewski.km1@contractors.roche.com>
This commit is contained in:
committed by
GitHub
parent
f5c27da41c
commit
3a2eee308c
@@ -0,0 +1,4 @@
|
|||||||
|
[submodule "project"]
|
||||||
|
path = project
|
||||||
|
url = https://github.com/eugenp/tutorials.git
|
||||||
|
branch = master
|
||||||
@@ -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/
|
||||||
|
|
||||||
Reference in New Issue
Block a user