Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@ FROM gradle:8.8-jdk17 AS build
|
|
| 2 |
RUN --mount=type=secret,id=TOKEN,target=/run/secrets/TOKEN \
|
| 3 |
export SECRET_VALUE=$(cat /run/secrets/TOKEN) && \
|
| 4 |
echo $SECRET_VALUE
|
| 5 |
-
RUN git config
|
| 6 |
-
RUN git config
|
| 7 |
RUN echo "https://oauth2:${SECRET_VALUE}@github.com/subjectid1/dms" | git credential approve
|
| 8 |
RUN git clone https://github.com/subjectid1/dms.git
|
|
|
|
| 2 |
RUN --mount=type=secret,id=TOKEN,target=/run/secrets/TOKEN \
|
| 3 |
export SECRET_VALUE=$(cat /run/secrets/TOKEN) && \
|
| 4 |
echo $SECRET_VALUE
|
| 5 |
+
RUN git config --global credential.helper store
|
| 6 |
+
RUN git config --global credential.username oauth2
|
| 7 |
RUN echo "https://oauth2:${SECRET_VALUE}@github.com/subjectid1/dms" | git credential approve
|
| 8 |
RUN git clone https://github.com/subjectid1/dms.git
|