mse-tekton/resources/pipeline/test-clone.yaml
2025-03-24 16:46:27 +01:00

33 lines
796 B
YAML

apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: test-clone
spec:
description: |
This pipeline clones a git repo, then echoes the README file to the stdout.
params:
- name: repo-url
type: string
description: The git repo URL to clone from.
workspaces:
- name: shared-data
description: |
This workspace contains the cloned repo files, so they can be read by the
next task.
tasks:
- name: git-clone
taskRef:
name: git-clone
workspaces:
- name: output
workspace: shared-data
params:
- name: url
value: $(params.repo-url)
- name: show-readme
runAfter: ["git-clone"]
taskRef:
name: show-readme
workspace:
- name: source
workspace: shared-data