build/bot: configure go cache

This commit is contained in:
Felix Lange 2022-09-29 00:16:31 +02:00
parent 12a1050704
commit 33be0abec2
2 changed files with 10 additions and 0 deletions

View file

@ -5,3 +5,8 @@ WORKDIR /source
# Prevent git error because the owner of /source does not exist in the Docker container.
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

View file

@ -12,3 +12,8 @@ WORKDIR /source
# Prevent git error because the owner of /source does not exist in the Docker container.
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