diff --git a/examples/generate-pipeline/README.adoc b/examples/generate-pipeline/README.adoc index ff993154a42..4901469c7c5 100644 --- a/examples/generate-pipeline/README.adoc +++ b/examples/generate-pipeline/README.adoc @@ -8,7 +8,7 @@ _Please keep in mind that the generate-pipeline command is still a WIP_ Prerequisites: * Install tekton on your cluster (https://github.com/tektoncd/pipeline/blob/master/docs/install.md) -* Have kaniko secrets setup (https://github.com/GoogleContainerTools/kaniko) +* Have kaniko secrets setup and installed in your cluster (https://github.com/GoogleContainerTools/kaniko#kubernetes-secret) * Container registry must be public * Give your default service account the cluster-admin role (necessary to have pipeline access secrets) ---- @@ -20,8 +20,22 @@ kubectl create clusterrolebinding serviceaccounts-cluster-admin \ To generate and run a pipeline: * Run skaffold generate-pipeline -* Modify skaffold.yaml to use a valid GCSbucket for kaniko +* Modify skaffold.yaml to use a valid GCSbucket for kaniko if needed. * Commit and push updated skaffold.yaml * kubectl apply -f pipeline.yaml -* Create a pipelinerun.yaml +* Create a pipelinerun.yaml +---- +apiVersion: tekton.dev/v1alpha1 +kind: PipelineRun +metadata: + name: skaffold-pipeline-run +spec: + pipelineRef: + name: skaffold-pipeline + resources: + - name: source-repo + resourceRef: + name: source-git +---- + * kubectl apply -f pipelinerun.yaml