Skip to content

Commit

Permalink
[docs] Right steps for secret creation in generate-pipeline flow. (#…
Browse files Browse the repository at this point in the history
…3180)

* Right steps for secret creation

* Add pipeline run

* fix formatting
  • Loading branch information
tejal29 authored and dgageot committed Nov 6, 2019
1 parent a29ee9a commit c0bc2d3
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions examples/generate-pipeline/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
----
Expand All @@ -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

0 comments on commit c0bc2d3

Please sign in to comment.