-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclone-list-pipeline.yml.tpl
39 lines (39 loc) · 1.08 KB
/
clone-list-pipeline.yml.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Taken from https://github.com/redhat-scholars/tekton-tutorial/blob/master/private_repos_reg/secretworld-app-clone.yaml
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: clone-list-pipeline
spec:
description: >-
The pipeline to clone from private GitHub repo and list the directory
params:
- name: private-github-repo-url
description: The private GitHub Repo
- name: github-repo-revision
description: The GitHub revision to use
default: master
workspaces:
- name: $WS_SRC
tasks:
- name: fetch-repository
taskRef:
name: git-clone
kind: ClusterTask
params:
- name: url
value: $(params.private-github-repo-url)
- name: revision
value: $(params.github-repo-revision)
- name: deleteExisting
value: 'true'
workspaces:
- name: output
workspace: $WS_SRC
- name: list-fetched-repo
taskRef:
name: list-directory
runAfter:
- fetch-repository
workspaces:
- name: directory
workspace: $WS_SRC