Put it back to an if for clarity.
Some checks failed
Test / Run unit tests (pull_request) Failing after 47s
Test / Run integration tests (pull_request) Failing after 3m2s

This commit is contained in:
Thomas E Lackey 2023-07-10 14:28:51 -05:00
parent f4db8e722f
commit 2af9406b25

View File

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