-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pipeline): multi-branch pipelines(cleaned up) (#403)
If your team follows [GitHub flow](https://docs.github.com/en/get-started/quickstart/github-flow), the pipelines module can optionally help you create independent environments to test and validate changes before merging. When you create a new branch, it will automatically create a new pipeline stack and any stages you configure. Once you have finished testing and delete the branch, it will automatically clean up the stacks created in the branch's environment. EventBridge Rules trigger Lambda functions on CodeCommit repo branch creation and deletion. The Lambda function for creation sets the `BRANCH` environment variable and runs a CodeBuild project that creates the pipeline stack for the branch. It is up to the developer to give their pipeline stack and stages unique names per branch. The examples show how to use the `BRANCH` variable to do so. The multi-branch stacks are tagged with the branch name and repository name. The Lambda for branch deletion lists all stacks matching those tags and deletes them. I tested this change using a Typescript pipeline project. This is a cleaned up version of PR #364 due to structural changes during development. Resolves #302, replaces #364
- Loading branch information
Showing
22 changed files
with
22,761 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.