mounting cache dir at /home/go origin/master
authorErik Brakkee <erik@brakkee.org>
Thu, 14 Nov 2024 19:04:47 +0000 (20:04 +0100)
committerErik Brakkee <erik@brakkee.org>
Thu, 14 Nov 2024 19:04:47 +0000 (20:04 +0100)
images/go-1-23-2/Dockerfile
resources/podtemplates/go-1-23-2.yaml

index 5f07c2e071cd5993d81bb87ca425e52e7825e0c5..7ff10373b4a0b332e76f2cd9cddb91fc20b20d13 100644 (file)
@@ -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" ]
index ba45fb780749e9c90529fa9f58c7692aa6dffe5b..3d721066a68749ef220c71645133e065f4411593 100644 (file)
@@ -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