Restore earlier (working) form of the git config command.
Some checks failed
Test / Run unit tests (pull_request) Failing after 49s
Test / Run integration tests (pull_request) Failing after 2m38s

This commit is contained in:
Thomas E Lackey 2023-07-10 14:13:01 -05:00
parent d921095d80
commit 5a2a8765b7

View File

@ -9,9 +9,8 @@ ARG GIT_VDBTO_TOKEN
# Get and cache deps # Get and cache deps
WORKDIR /plugeth-statediff/ WORKDIR /plugeth-statediff/
COPY go.mod go.sum . COPY go.mod go.sum .
RUN [ -n "$GIT_VDBTO_TOKEN" ] && \ RUN if [ -n "$GIT_VDBTO_TOKEN" ]; then git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"; fi && \
git config --global url."https://$GIT_VDBTO_TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/" ; \ go mod download && \
GOPROXY=off go mod download ; \
rm -f ~/.gitconfig rm -f ~/.gitconfig
COPY . . COPY . .