Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding Task and TaskBuidlers #8

Merged
merged 4 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,055 changes: 951 additions & 104 deletions API.md

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ made for you automatically. Here is the same construct, but defined using the
`PipelineBuilder`.

```typescript
new PipelineBuilder(this, 'my-pipeline')
.withName('clone-build-push')
.withDescription('This pipeline closes a repository, builds a Docker image, etc.')
.withTask(new PipelineTaskBuilder()
.withName('fetch-source')
.withTaskReference('git-clone')
.withWorkspace('output', 'shared-data', 'The files cloned by the task')
.withStringParam('url', 'repo-url', '$(params.repo-url)'))
.buildPipeline();
new PipelineBuilder(this, 'my-pipeline')
.withName('clone-build-push')
.withDescription('This pipeline closes a repository, builds a Docker image, etc.')
.withTask(new PipelineTaskBuilder()
.withName('fetch-source')
.withTaskReference('git-clone')
.withWorkspace('output', 'shared-data', 'The files cloned by the task')
.withStringParam('url', 'repo-url', '$(params.repo-url)'))
.buildPipeline();
```

The `build` method on the builders will validate the parameters and, if the
Expand All @@ -101,6 +101,6 @@ This is the core project with the basic Pipeline constructs. There are other
constructs that use this construct to develop richer pipelines and tasks that
are based on tasks available in [Tekton Hub](https://hub.tekton.dev/).

* [cdk8s-pipelines-cdk](TODO) - A construct that allows you to easily create
Tekton pipelines that use [AWS CDK](https://aws.amazon.com/cdk/) projects from
GitHub to deploy CDK resources to an AWS account.
* [cdk8s-pipelines-lib](https://github.com/cloud-native-toolkit/cdk8s-pipelines-lib) - A library of
constructs that allows you to easily create Tekton pipelines that use tasks from
Tekton Hub and also provides some basic, reusable pipelines.
Loading