fix(forgejo-runner): change cache mount path
This commit is contained in:
parent
9423d5fd6d
commit
c3e9f1609b
2 changed files with 10 additions and 4 deletions
kubernetes/main/apps/dev/forgejo-runner/app
|
@ -59,7 +59,7 @@ data:
|
||||||
enabled: true
|
enabled: true
|
||||||
# The directory to store the cache data.
|
# The directory to store the cache data.
|
||||||
# If it's empty, the cache data will be stored in $HOME/.cache/actcache.
|
# If it's empty, the cache data will be stored in $HOME/.cache/actcache.
|
||||||
dir: ""
|
dir: "/cache"
|
||||||
# The host of the cache server.
|
# The host of the cache server.
|
||||||
# It's not for the address to listen, but the address to connect from job containers.
|
# It's not for the address to listen, but the address to connect from job containers.
|
||||||
# So 0.0.0.0 is a bad choice, leave it empty to detect automatically.
|
# So 0.0.0.0 is a bad choice, leave it empty to detect automatically.
|
||||||
|
|
|
@ -51,10 +51,16 @@ spec:
|
||||||
- name: runner-data
|
- name: runner-data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
# fix permissions of cache pvc
|
# fix permissions of cache pvc
|
||||||
- command: ["sh", "-c", "chown -R 1000:1000 /data/.cache"]
|
- command:
|
||||||
|
- "sh"
|
||||||
|
- "-c"
|
||||||
|
- |
|
||||||
|
find /cache -type d -exec chmod 775 {} +
|
||||||
|
find /cache -type f -exec chmod 664 {} +
|
||||||
|
chown -R 1000:1000 /cache
|
||||||
image: busybox
|
image: busybox
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data/.cache/actcache
|
- mountPath: /cache
|
||||||
name: forgejo-runner-cache
|
name: forgejo-runner-cache
|
||||||
name: fix-permissions
|
name: fix-permissions
|
||||||
containers:
|
containers:
|
||||||
|
@ -80,7 +86,7 @@ spec:
|
||||||
mountPath: /data/config.yml
|
mountPath: /data/config.yml
|
||||||
subPath: config.yml
|
subPath: config.yml
|
||||||
- name: forgejo-runner-cache
|
- name: forgejo-runner-cache
|
||||||
mountPath: /data/.cache/actcache
|
mountPath: /cache
|
||||||
- name: daemon
|
- name: daemon
|
||||||
image: docker:27.4.1-dind
|
image: docker:27.4.1-dind
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Reference in a new issue