build/bot: configure go cache

pull/26029/head
Felix Lange 2 years ago
parent 12a1050704
commit 33be0abec2
  1. 5
      build/bot/Dockerfile.linux
  2. 5
      build/bot/Dockerfile.ppa

@ -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

@ -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

Loading…
Cancel
Save