Skip to content

Commit ba3a9a1

Browse files
authored
Merge pull request #235 from zmynx/fix/force-cdk-deploy
fix: serverless deployment imageTag and force deployment, using extraHash.
2 parents 3b0d67a + b6b42a9 commit ba3a9a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

serverless/cdk-app/lib/cdk-app-stack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class AwsLambdaCalculatorStack extends cdk.Stack {
2424
IMAGE_URI: props?.imageUri || "",
2525
IMAGE_TAG: props?.imageTag || "latest-lambda",
2626
},
27+
extraHash: props?.imageTag || "latest-lambda", // Force rebuild when imageTag changes
2728
});
2829

2930
// Define the Lambda function using the Docker image from ECR

0 commit comments

Comments
 (0)