Skip to content

Commit 62942e2

Browse files
committed
CCM-10294: pipeline performance
1 parent 3c9ed93 commit 62942e2

File tree

1 file changed

+5
-1
lines changed
  • infrastructure/terraform/components/sandbox

1 file changed

+5
-1
lines changed

infrastructure/terraform/components/sandbox/pre.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ echo "REGION=$REGION"
77
echo "ENVIRONMENT=$ENVIRONMENT"
88
echo "ACTION=$ACTION"
99

10-
if [ "$ACTION" == "apply"]; then
10+
if [ "${ACTION}" == "apply" ]; then
11+
echo "Building lambdas for distribution"
12+
1113
if [ -z "$SKIP_SANDBOX_INSTALL" ]; then npm ci; fi
1214

1315
npm run generate-dependencies --workspaces --if-present
1416

1517
npm run lambda-build --workspaces --if-present
1618

1719
$(git rev-parse --show-toplevel)/lambdas/layers/pdfjs/build.sh
20+
else
21+
echo "Skipping lambda build for action $ACTION"
1822
fi

0 commit comments

Comments
 (0)