configuring the cache correctly
authorErik Brakkee <erik@brakkee.org>
Thu, 14 Nov 2024 19:20:04 +0000 (20:20 +0100)
committerErik Brakkee <erik@brakkee.org>
Thu, 14 Nov 2024 19:20:04 +0000 (20:20 +0100)
images/go-1-23-2/Dockerfile
resources/podtemplates/go-1-23-2.yaml

index 7ff10373b4a0b332e76f2cd9cddb91fc20b20d13..3cb6793692f8cec430ec92fba1f4f841bf7aa994 100644 (file)
@@ -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" ]
index 3d721066a68749ef220c71645133e065f4411593..5860779c99f814f2bf3d9b8c474ec19ae687cf89 100644 (file)
@@ -9,7 +9,7 @@ spec:
       - name: run
         mountPath: /run
       - name: cache
-        mountPath: /home/ci/cache
+        mountPath: /cache
   volumes:
     - name: run
       emptyDir: {}