-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildspec.yml
35 lines (32 loc) · 1.3 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
version: 0.2
env:
parameter-store:
# REACT_APP_IDENTITY_POOL_ID: /cognito/casl/REACT_APP_IDENTITY_POOL_ID
REACT_APP_AWS_REGION: /cognito/casl/REACT_APP_AWS_REGION
REACT_APP_USER_POOL_ID: /cognito/casl/REACT_APP_USER_POOL_ID
REACT_APP_USER_POOL_WEB_CLIENT_ID: /cognito/casl/REACT_APP_USER_POOL_WEB_CLIENT_ID
REACT_APP_COGNITO_DOMAIN: /cognito/casl/REACT_APP_COGNITO_DOMAIN
REACT_APP_WEB_CLIENT_REDIRECT_URL: /cognito/casl/REACT_APP_WEB_CLIENT_REDIRECT_URL
phases:
install:
commands:
- npm install
build:
commands:
# - echo "REACT_APP_IDENTITY_POOL_ID=${REACT_APP_IDENTITY_POOL_ID}" >> .env.production
- echo "REACT_APP_AWS_REGION=${REACT_APP_AWS_REGION}" >> .env.production
- echo "REACT_APP_USER_POOL_ID=${REACT_APP_USER_POOL_ID}" >> .env.production
- echo "REACT_APP_USER_POOL_WEB_CLIENT_ID=${REACT_APP_USER_POOL_WEB_CLIENT_ID}" >> .env.production
- echo "REACT_APP_COGNITO_DOMAIN=${REACT_APP_COGNITO_DOMAIN}" >> .env.production
- echo "REACT_APP_WEB_CLIENT_REDIRECT_URL=${REACT_APP_WEB_CLIENT_REDIRECT_URL}" >> .env.production
finally:
- echo env file created successfully
post_build:
commands:
- npm run build
finally:
- echo build performed successfully
artifacts:
files:
- "**/*"
base-directory: build