-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #844 from aws-quickstart/feature/path-for-pipeline
added path support to code pipeline:
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -433,16 +433,18 @@ class CodePipeline { | |
|
||
const app = props.application ? `--app '${props.application}'` : ""; | ||
|
||
const path = props.repository.path ?? "./"; | ||
|
||
return new cdkpipelines.CodePipeline(scope, props.name, { | ||
pipelineName: props.name, | ||
synth: new cdkpipelines.ShellStep(`${props.name}-synth`, { | ||
input: codePipelineSource, | ||
installCommands: [ | ||
'n stable', | ||
'npm install -g [email protected]', | ||
'npm install', | ||
`cd ${path} && npm install`, | ||
], | ||
commands: ['npm run build', 'npx cdk synth ' + app] | ||
commands: [`cd ${path}`, 'npm run build', 'npx cdk synth ' + app] | ||
}), | ||
crossAccountKeys: props.crossAccountKeys, | ||
codeBuildDefaults: { | ||
|