51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
apiVersion: tekton.dev/v1beta1
|
|
kind: Pipeline
|
|
metadata:
|
|
name: clone-read
|
|
spec:
|
|
description: |
|
|
This pipeline clones a git repo, then echoes the README file to the stout.
|
|
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: fetch-source
|
|
taskRef:
|
|
name: git-clone
|
|
workspaces:
|
|
- name: output
|
|
workspace: shared-data
|
|
params:
|
|
- name: url
|
|
value: $(params.repo-url)
|
|
|
|
- name: show-readme
|
|
runAfter: ["fetch-source"]
|
|
taskRef:
|
|
name: show-readme
|
|
workspaces:
|
|
- name: source
|
|
workspace: shared-data
|
|
|
|
- name: php-security-check
|
|
runAfter: ["fetch-source"]
|
|
taskRef:
|
|
name: php-security-check
|
|
workspaces:
|
|
- name: source
|
|
workspace: shared-data
|
|
|
|
- name: php-cs-fixer
|
|
runAfter: ["fetch-source"]
|
|
taskRef:
|
|
name: php-cs-fixer
|
|
workspaces:
|
|
- name: source
|
|
workspace: shared-data
|