Skip to content

Commit

Permalink
Add git-resolver/PipelineTask example to tests
Browse files Browse the repository at this point in the history
This uses `test/git-resolver/remote-task.yaml` as the remote task.

Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
  • Loading branch information
abayer committed Oct 5, 2022
1 parent 99238a5 commit 6be77ba
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 48 deletions.
35 changes: 35 additions & 0 deletions examples/v1beta1/pipelineruns/alpha/git-resolver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: git-resolver-
spec:
workspaces:
- name: output # this workspace name must be declared in the Pipeline
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce # access mode may affect how you can use this volume in parallel tasks
resources:
requests:
storage: 1Gi
pipelineSpec:
workspaces:
- name: output
tasks:
- name: task1
workspaces:
- name: output
taskRef:
resolver: git
params:
- name: url
value: https://github.com/tektoncd/catalog.git
- name: pathInRepo
value: /task/git-clone/0.7/git-clone.yaml
- name: revision
value: main
params:
- name: url
value: https://github.com/tektoncd/catalog
- name: deleteExisting
value: "true"
48 changes: 0 additions & 48 deletions examples/v1beta1/pipelineruns/no-ci/git-resolver.yaml

This file was deleted.

0 comments on commit 6be77ba

Please sign in to comment.