49: Use a Personal Access Token to access private modules. #4
@ -8,10 +8,10 @@ ARG GITEA_TOKEN
|
||||
ENV GITEA_TOKEN=$GITEA_TOKEN
|
||||
|
||||
# Get and cache deps
|
||||
COPY go.mod /plugeth-statediff/
|
||||
COPY go.sum /plugeth-statediff/
|
||||
WORKDIR /plugeth-statediff/
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
RUN if [ -n "$GITEA_TOKEN" ]; then git config --global url."https://$GITEA_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \
|
||||
cd /plugeth-statediff && \
|
||||
go mod download && \
|
||||
rm -f ~/.gitconfig
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user