mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 12:06:40 +00:00
build/bot: configure go cache
This commit is contained in:
parent
12a1050704
commit
33be0abec2
2 changed files with 10 additions and 0 deletions
|
|
@ -5,3 +5,8 @@ WORKDIR /source
|
||||||
|
|
||||||
# Prevent git error because the owner of /source does not exist in the Docker container.
|
# Prevent git error because the owner of /source does not exist in the Docker container.
|
||||||
RUN git config --global --add safe.directory /source
|
RUN git config --global --add safe.directory /source
|
||||||
|
|
||||||
|
# Configure Go tool cache locations
|
||||||
|
ENV GOPATH=/cache/go
|
||||||
|
ENV GOCACHE=/cache/go/cache
|
||||||
|
ENV GOMODCACHE=/cache/go/modcache
|
||||||
|
|
@ -12,3 +12,8 @@ WORKDIR /source
|
||||||
|
|
||||||
# Prevent git error because the owner of /source does not exist in the Docker container.
|
# Prevent git error because the owner of /source does not exist in the Docker container.
|
||||||
RUN git config --global --add safe.directory /source
|
RUN git config --global --add safe.directory /source
|
||||||
|
|
||||||
|
# Configure Go tool cache locations
|
||||||
|
ENV GOPATH=/cache/go
|
||||||
|
ENV GOCACHE=/cache/go/cache
|
||||||
|
ENV GOMODCACHE=/cache/go/modcache
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue