Put it back to an if for clarity.
This commit is contained in:
parent
afcf2dcb3f
commit
d398bfc902
@ -14,8 +14,8 @@ ARG GIT_VDBTO_TOKEN
|
||||
# Get dependencies - will also be cached if we won't change go.mod/go.sum
|
||||
WORKDIR /go-ethereum/
|
||||
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 . .
|
||||
|
Loading…
Reference in New Issue
Block a user