diff --git a/examples/v1beta1/pipelineruns/alpha/git-resolver.yaml b/examples/v1beta1/pipelineruns/alpha/git-resolver.yaml new file mode 100644 index 00000000000..321bac1576b --- /dev/null +++ b/examples/v1beta1/pipelineruns/alpha/git-resolver.yaml @@ -0,0 +1,36 @@ +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: + params: + - name: url + value: https://github.com/tektoncd/catalog + - name: deleteExisting + value: "true" diff --git a/examples/v1beta1/pipelineruns/no-ci/git-resolver.yaml b/examples/v1beta1/pipelineruns/no-ci/git-resolver.yaml deleted file mode 100644 index d84938f8a72..00000000000 --- a/examples/v1beta1/pipelineruns/no-ci/git-resolver.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# NOTE: The referenced Pipeline requires that the git-clone, buildpacks, and buildpacks-phase tasks from the Hub -# are available in the namespace. ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: git-resovler-buildpacks-ws-pvc -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 500Mi ---- -apiVersion: tekton.dev/v1beta1 -kind: PipelineRun -metadata: - generateName: git-resolver- -spec: - pipelineRef: - resolver: bundles - params: - - name: url - value: https://github.com/tektoncd/catalog.git - - name: revision - value: main - - name: pathInRepo - value: pipeline/buildpacks/0.2/buildpacks.yaml - params: - - name: BUILDER_IMAGE - value: docker.io/cnbs/sample-builder:bionic@sha256:6c03dd604503b59820fd15adbc65c0a077a47e31d404a3dcad190f3179e920b5 - - name: TRUST_BUILDER - value: "false" - - name: APP_IMAGE - value: localhost:5000/buildpacks-app - - name: SOURCE_URL - value: https://github.com/buildpacks/samples - - name: SOURCE_SUBPATH - value: apps/ruby-bundler - workspaces: - - name: source-ws - subPath: source - persistentVolumeClaim: - claimName: git-resolver-buildpacks-ws-pvc - - name: cache-ws - subPath: cache - persistentVolumeClaim: - claimName: git-resolver-buildpacks-ws-pvc