chore(deployment): fix permissions
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
24d0dd63ab
commit
e803aaa7f8
1 changed files with 9 additions and 1 deletions
|
@ -23,7 +23,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: codeberg.org/forgejo/forgejo:10.0.1
|
- image: codeberg.org/forgejo/forgejo:10.0.1
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: USER_UID
|
- name: USER_UID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
|
@ -40,6 +40,14 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/data"
|
- mountPath: "/data"
|
||||||
name: forgejo-pv-storage
|
name: forgejo-pv-storage
|
||||||
|
initContainers:
|
||||||
|
- name: fix-permissions
|
||||||
|
image: busybox
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
command: ["sh", "-c", "chown -R 1000:1000 /mnt"]
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: "/mnt"
|
||||||
|
name: forgejo-pv-storage
|
||||||
volumes:
|
volumes:
|
||||||
- name: forgejo-pv-storage
|
- name: forgejo-pv-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|
Loading…
Add table
Reference in a new issue