Add pnpm store cache to runner via persistent Docker volume
Some checks failed
CI / changes (push) Successful in 2s
CI / lint-and-test (push) Successful in 49s
Deploy Production / deploy (push) Failing after 20s
CI / build (push) Has been skipped

Mount a named Docker volume (pnpm-store) into every job container
at the default pnpm store path. The volume persists in the DinD
sidecar across job runs, so pnpm install reuses cached packages.
This commit is contained in:
Julia McGhee
2026-03-21 16:41:37 +00:00
parent 98ab851b60
commit eced4c1473
3 changed files with 25 additions and 0 deletions

View File

@@ -30,9 +30,14 @@ spec:
value: "ubuntu-latest:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest,linux/amd64:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest,cluster:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest"
- name: DOCKER_HOST
value: tcp://localhost:2375
- name: CONFIG_FILE
value: /config/config.yaml
volumeMounts:
- name: runner-data
mountPath: /data
- name: runner-config
mountPath: /config
readOnly: true
resources:
requests:
memory: 256Mi
@@ -60,5 +65,8 @@ spec:
volumes:
- name: runner-data
emptyDir: {}
- name: runner-config
configMap:
name: gitea-runner-config
- name: dind-storage
emptyDir: {}

View File

@@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- runner-config.yaml
- gitea-runner-token-sealed.yaml

View File

@@ -0,0 +1,16 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: gitea-runner-config
namespace: platform
data:
config.yaml: |
log:
level: info
runner:
capacity: 1
timeout: 3600
container:
options: "-v pnpm-store:/root/.local/share/pnpm/store"
valid_volumes:
- "pnpm-store"