-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
22 lines (22 loc) · 909 Bytes
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: 0.0
environment_variables:
plaintext:
"INPUT_FILE": ""
"S3_WEBSITE_BUCKET": ""
"S3_ARTIFACT_BUCKET": ""
containers:
LambdaFunctions:
phases:
during_build:
commands:
- for i in ./lambda/*; do [ -d $i ] && cd "$i" && npm install && cd ../..; done
- apt update
- apt install jekyll -y
- apt install python3-pip python-dev build-essential -y
- pip install awscli
- aws cloudformation package --template $INPUT_FILE --s3-bucket $S3_ARTIFACT_BUCKET --output-template post-package.yaml
- jekyll build --source website/ --destination website/_site/
- aws s3 sync website/_site/ "s3://${S3_WEBSITE_BUCKET}"
artifacts:
files:
- post-package.yaml