From c926c64eb9b8cc69032478b560bf64932d2074dd Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Thu, 14 Nov 2024 20:20:04 +0100 Subject: [PATCH] configuring the cache correctly --- images/go-1-23-2/Dockerfile | 3 ++- resources/podtemplates/go-1-23-2.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/images/go-1-23-2/Dockerfile b/images/go-1-23-2/Dockerfile index 7ff1037..3cb6793 100644 --- a/images/go-1-23-2/Dockerfile +++ b/images/go-1-23-2/Dockerfile @@ -22,6 +22,7 @@ RUN addgroup -g 1000 ci && \ adduser ci docker-external USER ci -RUN ln -s ~ci/cache/go ~ci/go +ENV GOCACHE=/home/ci/cache/gocache +ENV GOMODCACHE=/home/ci/cache/gomodcache ENTRYPOINT ["tail", "-f", "/dev/null" ] diff --git a/resources/podtemplates/go-1-23-2.yaml b/resources/podtemplates/go-1-23-2.yaml index 3d72106..5860779 100644 --- a/resources/podtemplates/go-1-23-2.yaml +++ b/resources/podtemplates/go-1-23-2.yaml @@ -9,7 +9,7 @@ spec: - name: run mountPath: /run - name: cache - mountPath: /home/ci/cache + mountPath: /cache volumes: - name: run emptyDir: {} -- 2.31.1