Compare commits
No commits in common. "preserve_cache_v2" and "main" have entirely different histories.
preserve_c
...
main
@ -22,11 +22,6 @@ spec:
|
||||
description: Includes credentials for the docker image registry.
|
||||
optional: true
|
||||
mountPath: /home/user/.docker
|
||||
- name: buildkit-cache
|
||||
description: For preserving buildkit type=cache mounts between builds.
|
||||
optional: true
|
||||
# mountPath: /home/user/.local/share/foo
|
||||
mountPath: /home/user/.local/share/buildkit
|
||||
params:
|
||||
- name: OUTPUT
|
||||
type: string
|
||||
@ -69,29 +64,6 @@ spec:
|
||||
- name: metadata-out
|
||||
emptyDir: {}
|
||||
steps:
|
||||
- name: run-as-user
|
||||
image: $(params.BUILDER_IMAGE)
|
||||
workingDir: "$(workspaces.source.path)"
|
||||
script: |
|
||||
#!/usr/bin/env sh
|
||||
set -euo pipefail
|
||||
echo "yo"
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
- 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
|
||||
image: $(params.BUILDER_IMAGE)
|
||||
workingDir: "$(workspaces.source.path)"
|
||||
@ -116,7 +88,7 @@ spec:
|
||||
chmod +x /home/user/.config/buildkit/entrypoint.sh
|
||||
volumeMounts:
|
||||
- name: buildkitd
|
||||
mountPath: /home/user/.local/share/buildkittwo
|
||||
mountPath: /home/user/.local/share/buildkit
|
||||
- name: buildkitd-toml
|
||||
mountPath: /home/user/.config/buildkit
|
||||
securityContext:
|
||||
@ -141,7 +113,7 @@ spec:
|
||||
- $(params.EXTRA_ARGS)
|
||||
volumeMounts:
|
||||
- name: buildkitd
|
||||
mountPath: /home/user/.local/share/buildkittwo
|
||||
mountPath: /home/user/.local/share/buildkit
|
||||
- name: buildkitd-toml
|
||||
mountPath: /home/user/.config/buildkit
|
||||
readOnly: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user