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:
|
||||
containers:
|
||||
- image: codeberg.org/forgejo/forgejo:10.0.1
|
||||
imagePullPolicy: Always
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: USER_UID
|
||||
value: "1000"
|
||||
|
@ -40,6 +40,14 @@ spec:
|
|||
volumeMounts:
|
||||
- mountPath: "/data"
|
||||
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:
|
||||
- name: forgejo-pv-storage
|
||||
persistentVolumeClaim:
|
||||
|
|
Loading…
Add table
Reference in a new issue