From: Erik Brakkee Date: Thu, 14 Nov 2024 19:04:47 +0000 (+0100) Subject: mounting cache dir at /home/go X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=98b8462fd7e569ec6c16362c68fb6558d22e7cc8;p=pipelinelib mounting cache dir at /home/go --- diff --git a/images/go-1-23-2/Dockerfile b/images/go-1-23-2/Dockerfile index 5f07c2e..7ff1037 100644 --- a/images/go-1-23-2/Dockerfile +++ b/images/go-1-23-2/Dockerfile @@ -22,5 +22,6 @@ RUN addgroup -g 1000 ci && \ adduser ci docker-external USER ci +RUN ln -s ~ci/cache/go ~ci/go ENTRYPOINT ["tail", "-f", "/dev/null" ] diff --git a/resources/podtemplates/go-1-23-2.yaml b/resources/podtemplates/go-1-23-2.yaml index ba45fb7..3d72106 100644 --- a/resources/podtemplates/go-1-23-2.yaml +++ b/resources/podtemplates/go-1-23-2.yaml @@ -8,6 +8,11 @@ spec: volumeMounts: - name: run mountPath: /run + - name: cache + mountPath: /home/ci/cache volumes: - name: run emptyDir: {} + - name: cache + persistentVolumeClaim: + claimName: jenkins-cache