From 33be0abec218d8b951fc066c090e24ca58b860fc Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 29 Sep 2022 00:16:31 +0200 Subject: [PATCH] build/bot: configure go cache --- build/bot/Dockerfile.linux | 5 +++++ build/bot/Dockerfile.ppa | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/build/bot/Dockerfile.linux b/build/bot/Dockerfile.linux index 2ca3c18853..3a489abecb 100644 --- a/build/bot/Dockerfile.linux +++ b/build/bot/Dockerfile.linux @@ -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 \ No newline at end of file diff --git a/build/bot/Dockerfile.ppa b/build/bot/Dockerfile.ppa index dcda640ad6..2f9c5e5891 100644 --- a/build/bot/Dockerfile.ppa +++ b/build/bot/Dockerfile.ppa @@ -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