From: Erik Brakkee Date: Thu, 14 Nov 2024 19:20:04 +0000 (+0100) Subject: configuring the cache correctly X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=c926c64eb9b8cc69032478b560bf64932d2074dd;p=pipelinelib configuring the cache correctly --- 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: {}