-
Notifications
You must be signed in to change notification settings - Fork 5
/
buildspec.yml
38 lines (33 loc) · 1.01 KB
/
buildspec.yml
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
36
37
38
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
# TODO do advanced canary deployments
# https://github.com/davidgf/serverless-plugin-canary-deployments
# https://github.com/serverless/serverless/issues/4595
# https://github.com/davidgf/serverless-plugin-canary-deployments
version: 0.2
env:
variables:
CI: true
TEST_EMAILS_ONLY: true
parameter-store:
ENCRYPTION_KEY: /slack-lunch-club/ENCRYPTION_KEY
phases:
install:
commands:
- scripts/install-npm.sh
- export $(npm run --silent print-env-vars)
# TODO this logic should live in a lambda function
# to avoid unneccessary builds
- scripts/skip-build.sh
build:
commands:
- scripts/build.sh
post_build:
commands:
- scripts/post-build.sh
# TODO fix problems with sym links
# cache:
# paths:
# - 'node_modules/**/*'
# - 'backend/node_modules/**/*'
# - 'frontend/node_modules/**/*'