From 7c4220907d53a9b54441a0ea6014abd428734d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Tue, 23 Apr 2024 13:41:46 +0200 Subject: [PATCH] fix --- .../tekton.dev_v1beta1_Task_git-clone.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/share/gitea-tekton-org/tekton.dev_v1beta1_Task_git-clone.yaml b/share/gitea-tekton-org/tekton.dev_v1beta1_Task_git-clone.yaml index 56326a7..afa740e 100644 --- a/share/gitea-tekton-org/tekton.dev_v1beta1_Task_git-clone.yaml +++ b/share/gitea-tekton-org/tekton.dev_v1beta1_Task_git-clone.yaml @@ -107,7 +107,7 @@ spec: description: | Absolute path to the user's home directory. type: string - default: "/tmp/" + default: "/home/git" results: - name: commit description: The precise commit SHA that was fetched by this Task. @@ -115,6 +115,9 @@ spec: description: The precise URL that was fetched by this Task. - name: committer-date description: The epoch timestamp of the commit that was fetched by this Task. + volumes: + - name: home + emptyDir: {} steps: - name: clone image: $(params.toolbox-image) @@ -168,6 +171,9 @@ spec: securityContext: runAsNonRoot: true runAsUser: 65532 + volumeMounts: + - mountPath: "$(params.userHome)" + name: home script: | #!/usr/bin/env sh set -eu