cdklabs / cdklabs/cdk-pipelines-github

Allow per PR/branch deployment

Open
#1,086 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
384
Forks
45
Avg merge
1d 1h
Merged PRs (30d)
4

Description

I want to have ability to do isolated deployments per PR/branch. Every such deployment should be done to the same account.

When I try to describe such PR/branch deployment pipeline with CDK, there is no way to use `${{ github.ref_name }}` or `${{ github.event.pull_request.number }}` in stage name.

Ideally, I would like to pass `stageName` while calling `.addStage(...)` and make it dependent on variables that will be later accessible in Github Workflow during execution.

Is there any trick that would allow me to do per PR/branch deployments?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.