Minimize changes.
Some checks failed
Test / Run unit tests (pull_request) Failing after 52s
Test / Run integration tests (pull_request) Failing after 20s

This commit is contained in:
Thomas E Lackey 2023-07-06 15:07:35 -05:00
parent 539f2a5586
commit eae5689af2

View File

@ -8,10 +8,10 @@ ARG GITEA_TOKEN
ENV GITEA_TOKEN=$GITEA_TOKEN ENV GITEA_TOKEN=$GITEA_TOKEN
# Get and cache deps # Get and cache deps
COPY go.mod /plugeth-statediff/ WORKDIR /plugeth-statediff/
COPY go.sum /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 && \ 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 && \ go mod download && \
rm -f ~/.gitconfig rm -f ~/.gitconfig