subjectid commited on
Commit
7784a3f
·
verified ·
1 Parent(s): 2fbba25

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 --local credential.helper store
6
- RUN git config --local 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
 
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