Skip to content

Commit 9a33d13

Browse files
committed
feat: allow multiple pipelines per repository (#20)
- Include branch name in pipeline name for GitHub source - Update pipeline name format to [repoOwner]-[repoName]-[branchName] - Maintain S3 source pipeline naming unchanged - Clean pipeline name from special characters This enables: - Multiple pipelines per repository - Different pipelines for different branches - Support for multiple environments Fixes #20
1 parent 2cfde47 commit 9a33d13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/pipeline_infrastructure.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,11 @@ export class PipelineInfrastructure extends Construct {
126126

127127
const { repoOwner, repoName } = parsedUrl;
128128
//the pipeline is triggered from code repository
129-
pipelineName = repoOwner + "@" + repoName;
129+
pipelineName = `${repoOwner}-${repoName}-${params.hostingConfiguration.branchName}`;
130+
130131
pipelineName = cleanPipelineNameStr(pipelineName);
132+
133+
131134
buildName = "Build-And-Copy-to-S3-" + repoName;
132135
buildName = cleanBuildNameStr(buildName);
133136
const sourceActionName = cleanActionNameStr("GitHub-Source-" + repoName);

0 commit comments

Comments
 (0)