- You have followed the Getting Started with Minikube Guide
-
Clone the Dracon repository.
$ git clone https://github.com/thought-machine/dracon.git "${PWD}/dracon"
-
Copy an example demo pipeline from the
./examples/pipelines
directory into your working directory. We have chosenmixed-lang-project
.$ cp -r "${PWD}/dracon/examples/pipelines/mixed-lang-project" "${PWD}"
-
Add the following resources to the
pipeline-run.yaml
and do the following:-
Replace the
FILL_ME_IN
s with the guidance. -
Name the resources consistently, we've opted for
gitssh-<repository_domain>-<repository_path_kebab_separated>
, examples:github.com/thought-machine/dracon
->gitssh-github-thought-machine-dracon
github.com/tektoncd/pipeline
->gitssh-github-tektoncd-pipeline
-
Set the
tekton.dev/v1alpha1, PipelineRun
resource'sspec.serviceAccountName
to thev1, ServiceAccount
you just added. -
Remove the previous
tekton.dev/v1alpha1, PipelineResource
.--- apiVersion: v1 kind: Secret metadata: name: gitssh-github-tektoncd-pipeline annotations: tekton.dev/git-0: github.com labels: {} type: kubernetes.io/ssh-auth data: # Generated by: # cat id_rsa | base64 -w 0 # This deploy key has read-only permissions on github.com/knative/build ssh-privatekey: FILL_ME_IN # Generated by: # ssh-keyscan github.com | base64 -w 0 known_hosts: FILL_ME_IN --- apiVersion: v1 kind: ServiceAccount metadata: name: gitssh-github-tektoncd-pipeline labels: {} secrets: - name: gitssh-github-tektoncd-pipeline --- # git+ssh config: pipeline resource apiVersion: tekton.dev/v1alpha1 kind: PipelineResource metadata: name: "{{.RunID}}-gitssh-github-tektoncd-pipeline" labels: {} spec: type: git params: - name: revision value: master - name: url value: [email protected]:tektoncd/pipeline.git
-
-
You can now run
dracon setup
anddracon run
with your pipeline$ dracon setup --pipeline mixed-lang-project $ dracon run --pipeline mixed-lang-project