apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: j7s-git-clone namespace: j7s-ci spec: workspaces: - name: output - name: ssh-directory params: - name: url - name: branch steps: - image: 192.168.1.128:8443/gitssh:latest script: | set -x cp -r $(workspaces.ssh-directory.path) ~/.ssh chmod 700 ~/.ssh chmod -R 400 ~/.ssh/* git clone --single-branch --branch $(params.branch) $(params.url) $(workspaces.output.path)