Put back in chown.

This commit is contained in:
Tom Alexander 2025-02-23 13:15:24 -05:00
parent 8cf07d7693
commit 23916baa61
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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)"