-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yaml
38 lines (31 loc) · 735 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
27
28
29
30
31
32
33
34
35
36
version: 0.2
env:
variables:
NODE_ENV: "${env}"
parameter-store:
REACT_APP_KETTLING_MAP_BOX_KEY: REACT_APP_KETTLING_MAP_BOX_KEY
REACT_APP_KETTLING_MAP_BOX_STYLE_ID: REACT_APP_KETTLING_MAP_BOX_STYLE_ID
exported-variables:
- REACT_APP_KETTLING_MAP_BOX_KEY
- REACT_APP_KETTLING_MAP_BOX_STYLE_ID
phases:
install:
runtime-versions:
nodejs: 14
commands:
- echo installing . . .
- rm -rf .git
- yarn install
build:
commands:
- echo Starting build . . .
- NODE_OPTIONS="--max-old-space-size=4096"
- yarn run build
artifacts:
files:
- '**/*'
name: "web-dist-$(date +%Y-%m-%d)"
base-directory: build
cache:
paths:
- /root/.npm/**/*