-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildspec.yaml
26 lines (26 loc) · 1000 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
26
version: 0.2
phases:
install:
commands:
# Install yarn natively https://yarnpkg.com/en/docs/install#linux-tab
- sudo apt-get update && sudo apt-get install apt-transport-https
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update && sudo apt-get install yarn
- yarn
build:
commands:
- cd services/cognito && yarn run build && cd ../../
- cd services/postgraphile && yarn run build && cd ../../
post_build:
commands:
- yarn install --production
- aws cloudformation package --template-file $TEMPLATE_FILE --s3-bucket $S3_BUCKET --output-template-file $OUTPUT_TEMPLATE_FILE
artifacts:
type: zip
files:
- services/cognito/lib/**
- services/cognito/node_modules/**
- services/postgraphile/lib/**
- services/postgraphile/node_modules/**
- $OUTPUT_TEMPLATE_FILE