forked from ASUCICREPO/PDF_accessability_UI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
35 lines (31 loc) · 900 Bytes
/
buildspec.yml
File metadata and controls
35 lines (31 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 0.2
phases:
install:
runtime-versions:
nodejs: 20
commands:
- echo "Installing AWS CDK CLI..."
- npm install -g aws-cdk
- echo "Changing into cdk_backend directory"
- cd cdk_backend
- echo "Installing npm dependencies"
- npm ci
pre_build:
commands:
- echo "Building TypeScript sources"
- npm run build
- echo "Bootstrapping CDK (no approval)..."
- >-
cdk bootstrap --require-approval never \
-c PDF_TO_PDF_BUCKET=$PDF_TO_PDF_BUCKET \
-c PDF_TO_HTML_BUCKET=$PDF_TO_HTML_BUCKET
build:
commands:
- echo "Deploying all CDK stacks..."
- >-
cdk deploy --all --require-approval never \
-c PDF_TO_PDF_BUCKET=$PDF_TO_PDF_BUCKET \
-c PDF_TO_HTML_BUCKET=$PDF_TO_HTML_BUCKET
post_build:
commands:
- echo "CDK deployment complete."