-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yaml
25 lines (25 loc) · 880 Bytes
/
buildspec.yaml
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
version: 0.0
environment_variables:
plaintext:
"S3_ARTIFACT_BUCKET": ""
"CONFIG_FOLDER": ""
containers:
LambdaFunctions:
phases:
install:
commands:
- npm install -g npm
pre_build:
commands:
- aws s3 sync s3://${S3_ARTIFACT_BUCKET}/config/env/${CONFIG_FOLDER} ./src/config/env
build:
commands:
- npm run build
post_build:
commands:
- rm -rf ./node_modules
- npm install --production
- aws cloudformation package --template $INPUT_FILE --s3-bucket $S3_ARTIFACT_BUCKET --output-template staging-post-package.yaml
artifacts:
files:
- staging-post-package.yaml