-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
@aws-cdk/pipelines. CdkPipeline: Enable multiple sources #14493
Comments
Related #14490 |
Will be addressed by #12326, closing early as duplicate to keep tracking more manageable. |
|
@robert-hanuschke You find This is also explained in the additional inputs section: const prebuild = new ShellStep('Prebuild', {
input: CodePipelineSource.gitHub('myorg/repo1'),
primaryOutputDirectory: './build',
commands: ['./build.sh'],
});
const pipeline = new CodePipeline(this, 'Pipeline', {
synth: new ShellStep('Synth', {
input: CodePipelineSource.gitHub('myorg/repo2'),
additionalInputs: {
'subdir': CodePipelineSource.gitHub('myorg/repo3'),
'../siblingdir': prebuild,
},
commands: ['./build.sh'],
})
}); and yes, I agree that such a great feature deserves more visibility. |
@bodokaiser ah, so the additional inputs defined in that way also trigger the pipeline (e.g. if nothing changed in myorg/repo1 but in myorg/repo3)? I interpreted that section in the way that the trigger still would only be morg/repo1 but once that fires it additionally loads repo2 and repo3 for supplementary data in support of repo1's changes. If I thought wrong there and changes to repo2 and repo3 also fire the pipeline - very cool, will try that! |
@robert-hanuschke I think so, in the |
Currently we can only specify a single source repository for a CdkPipeline, however it would be cleaner to enable us to store different parts of our application in different repositories.
Use Case
I have infrastructure and application code in different repos, and would like to have them deployed within the same pipeline.
Proposed Solution
Change sourceAction to be an array of source actions, i.e. sourceActions
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: