Put back in chown.
This commit is contained in:
parent
8cf07d7693
commit
23916baa61
@ -69,6 +69,18 @@ spec:
|
|||||||
- name: metadata-out
|
- name: metadata-out
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
steps:
|
steps:
|
||||||
|
- name: setup-cache-ownership
|
||||||
|
image: $(params.BUILDER_IMAGE)
|
||||||
|
workingDir: "$(workspaces.source.path)"
|
||||||
|
script: |
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
set -euo pipefail
|
||||||
|
chown 1000:1000 /home/user/.local/share/buildkit
|
||||||
|
chmod 0777 /home/user/.local/share/buildkit
|
||||||
|
securityContext:
|
||||||
|
# runAsNonRoot: false
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
- name: write-config
|
- name: write-config
|
||||||
image: $(params.BUILDER_IMAGE)
|
image: $(params.BUILDER_IMAGE)
|
||||||
workingDir: "$(workspaces.source.path)"
|
workingDir: "$(workspaces.source.path)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user