Skip to content

Commit 73b002d

Browse files
committed
Base path correction
1 parent 7945134 commit 73b002d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

infrastructure-cdk/lib/application-pipeline-stack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Aws, CfnOutput, RemovalPolicy, Stack, StackProps} from 'aws-cdk-lib';
22
import {Construct} from 'constructs';
33
import {JavaBuildPipeline} from "./constructs/java-build-pipeline";
44
import {BlockPublicAccess, Bucket, BucketEncryption} from "aws-cdk-lib/aws-s3";
5-
import {APPLICATION_NAME, ASSET_BUCKET_EXPORT_NAME, BUILD_FOR_RUNTIME} from "./shared-vars";
5+
import {APPLICATION_NAME, ASSET_BUCKET_EXPORT_NAME, BUILD_FOR_RUNTIME, SOURCE_CODE_ZIP} from "./shared-vars";
66
import {ApplicationRuntime} from "./constructs/application-runtime";
77
import {PythonBuildPipeline} from "./constructs/python-build-pipeline";
88

@@ -26,14 +26,14 @@ export class ApplicationPipelineStack extends Stack {
2626
appName: APPLICATION_NAME,
2727
deployBucket: artifactBucket,
2828
repositoryName: APPLICATION_NAME,
29-
projectRoot: APPLICATION_NAME
29+
projectRoot: SOURCE_CODE_ZIP.replace(".zip", "") + "/" + APPLICATION_NAME
3030
});
3131
else
3232
buildPipeline = new PythonBuildPipeline(this, 'python-app', {
3333
appName: APPLICATION_NAME,
3434
deployBucket: artifactBucket,
3535
repositoryName: APPLICATION_NAME,
36-
projectRoot: APPLICATION_NAME
36+
projectRoot: SOURCE_CODE_ZIP.replace(".zip", "") + "/" + APPLICATION_NAME
3737
});
3838

3939
new CfnOutput(this, 'ArtifactBucketName', {

infrastructure-cdk/lib/infra-pipeline-stack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export class InfraPipelineStack extends Stack {
1818
synth: new ShellStep('Synth', {
1919
input: CodePipelineSource.s3(artifactBucket, SOURCE_CODE_ZIP),
2020
commands: [
21-
"cd infrastructure-cdk",
21+
"cd " + SOURCE_CODE_ZIP.replace(".zip", "") + "/infrastructure-cdk",
2222
"npm ci",
2323
"npm run build",
2424
"npx cdk synth"
2525
],
26-
primaryOutputDirectory: 'infrastructure-cdk/cdk.out'
26+
primaryOutputDirectory: SOURCE_CODE_ZIP.replace(".zip", "") + '/infrastructure-cdk/cdk.out'
2727
})
2828
});
2929

0 commit comments

Comments
 (0)