I am using the Continuous Delivery service in IBM Cloud. My toolchain is defined using a YAML file and stored in the .bluemix directory in my GitHubcode repository. I am using Tekton for the pipeline. How can I add the Tekton Catalog to the toolchain? It should be an existing repo and not to be cloned or forked.
Specifying existing instead of clone as type did not work.
The Wiki in the open-toolchain/sdk repo has only basic information about how to specify GitHub integration. After looking through many code samples and related testing I found that the following service specification in the toolchain.yml works:
The
type: "link"
refers to an existing repository. The repo URLs refer to the mentioned tekton-catalog. What is interesting is that by specifyingkind: ['pipeline']
the repo configuration is not specified in the configuration dialog, but integrated as specified.In your tekton.yml add a reference to the configured catalog in the input section and referencing an environment variable that you declared for the pipeline in the toolchain.yml. Something like
with TEKTON_CATALOG_REPO based on
set as environment variable for the specific toolchain part.