-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildspec.yml
33 lines (31 loc) · 873 Bytes
/
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
version: 0.2
env:
variables:
CI: 'true'
phases:
install:
runtime-versions:
nodejs: 14
commands:
- echo "-Start Phase Install at `date`"
- npm i -g npm@7
# - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
# - unzip awscliv2.zip
# - ./aws/install
# - rm -rf aws awscliv2.zip
- npm ci --prefix ./frontend
- echo "-End Phase Install at `date`"
pre_build:
commands:
- echo "-Start Phase pre_build- at `date`"
# - npm run test --prefix ./frontend
- echo "-End Phase pre_build- at `date`"
build:
commands:
- echo "-Start -Phase build- at `date`"
- npm run cleanup --prefix ./frontend
- npm run push --prefix ./frontend
- echo "-End -Phase build- at `date`"
post_build:
commands:
- echo "-Phase post_build-"