Skip to content

Commit 3c9ed93

Browse files
committed
CCM-10294: pipeline performance
1 parent 5bcfdf1 commit 3c9ed93

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

infrastructure/terraform/bin/terraform.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,13 @@ if [ "${bootstrap}" == "true" ]; then
426426
tf_var_params+=" -var bucket_name=${bucket}";
427427
fi;
428428

429-
# Run pre-plan.sh / pre-apply.sh / pre-output.sh etc
430-
echo "Looking for pre-${action}.sh"
429+
# Run pre.sh
430+
echo "Looking for pre.sh"
431431
ls
432-
if [ -f "pre-${action}.sh" ]; then
433-
echo "Running pre-${action}.sh"
434-
source pre-${action}.sh "${region}" "${environment}" "${action}" \
435-
|| error_and_die "Component pre-${action}.sh script execution failed with exit code ${?}";
432+
if [ -f "pre.sh" ]; then
433+
echo "Running pre.sh"
434+
source pre.sh "${region}" "${environment}" "${action}" \
435+
|| error_and_die "Component pre.sh script execution failed with exit code ${?}";
436436
fi;
437437

438438
# Pull down secret TFVAR file from S3

infrastructure/terraform/components/sandbox/pre-apply.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

infrastructure/terraform/components/sandbox/pre-plan.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

infrastructure/terraform/components/sandbox/pre-tf.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
REGION=$1
2+
ENVIRONMENT=$2
3+
ACTION=$3
4+
5+
echo Running pre.sh
6+
echo "REGION=$REGION"
7+
echo "ENVIRONMENT=$ENVIRONMENT"
8+
echo "ACTION=$ACTION"
9+
10+
if [ "$ACTION" == "apply"]; then
11+
if [ -z "$SKIP_SANDBOX_INSTALL" ]; then npm ci; fi
12+
13+
npm run generate-dependencies --workspaces --if-present
14+
15+
npm run lambda-build --workspaces --if-present
16+
17+
$(git rev-parse --show-toplevel)/lambdas/layers/pdfjs/build.sh
18+
fi

0 commit comments

Comments
 (0)