-
Notifications
You must be signed in to change notification settings - Fork 0
/
amplify.yml
38 lines (38 loc) · 1.09 KB
/
amplify.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
# build file for amplify console to deploy the frontend
version: 1
applications:
- appRoot: broadcast-monitoring-ui
backend:
phases:
preBuild:
commands:
# uncomment the below when the enc cache needs to be reset
# (see https://github.com/aws-amplify/amplify-console/issues/138)
# - envCache --set stackInfo ""
# - npm install -g @aws-amplify/cli@latest # this is now done by the Amplify Console
- amplify --version
# - yum install python37
- python3 --version
- pip3 --version
- pip3 install -r requirements.txt
- python3 setup_config.py
build:
commands:
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- cat src/aws-exports.js
- npm install
- npm ci
build:
commands:
- npm run build
artifacts:
baseDirectory: dist
files:
- '**/*'
cache:
paths:
- node_modules/**/*