このコンテンツは選択した言語では利用できません。
Chapter 3. Customizing sample pipelines
Update the Pipeline as Code (pac) URLs within the sample templates repository. Then, customize the sample pipelines repository to match your workflow as needed. By customizing pac URLs, you can integrate custom pipelines tailored to your continuous integration and continuous delivery (CI/CD) requirements.
Prerequisites
Before customizing the sample pipelines, you must ensure you have the following prerequisites in place:
You have forked and cloned the following repositories:
- Each forked repository is synchronized with its upstream repository.
Procedure
Access the forked
tssc-sample-pipelinesrepository URL:-
Open the forked
tssc-sample-pipelinesrepository. -
Copy the complete URL from the address bar. For example,
https://github.com/<username>/tssc-sample-pipelines.
-
Open the forked
Update
pacURLs in thetssc-sample-templatesrepository:-
In your terminal, navigate to the local clone of the
tssc-sample-templatesrepository. Update the Tekton definition by running the following command:
./scripts/update-tekton-definition {fork_url} {branch_name}./scripts/update-tekton-definition {fork_url} {branch_name}Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
{fork_url}with the copied URL from step 1 and{branch_name}with the desired branch name. For example, to update the Tekton definition, run the following command:.scripts/update-tekton-definition \https://github.com/myusername/tssc-sample-pipelines main
$ .scripts/update-tekton-definition \https://github.com/myusername/tssc-sample-pipelines mainCopy to Clipboard Copied! Toggle word wrap Toggle overflow
-
In your terminal, navigate to the local clone of the
Review, commit, and push your changes:
-
Review the updated files within the
tssc-sample-templatesrepository. - Commit the changes with an appropriate message.
- Push the committed changes to the forked repository.
-
Review the updated files within the
Verification
- Consider creating an application to explore the impact of your template and pipeline customizations.