-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
39 lines (38 loc) · 946 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
34
35
36
37
38
39
version: 0.2
phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing source NPM dependencies...
- apt-get update -y
- apt-get install -y apt-transport-https
- npm install forever -g
- npm install -g @angular/cli
- npm install
- printf '' > src/environments/environment.ts
build:
commands:
- chmod +x ./env.sh
- ./env.sh
- echo Build started on `date`
- ng build --configuration=$BUILD_CONFIG
post_build:
commands:
- aws s3 sync www/ s3://$S3_BUCKET/ --delete
- aws cloudfront create-invalidation --distribution-id $CF_DIST_ID --paths '/*'
- echo Build completed on `date`
artifacts:
type: zip
files:
- package.json
- package-lock.json
- tsconfig.json
- tslint.json
- angular.json
- ionic.config.json
- src/**/*
- www/**/*
- node_modules/**/*
- android/**/*
- ios/**/*