buildspec.yml code pipeline
version: 0.2
phases:
install:
runtime-versions:
nodejs: 16
commands:
- npm install -g @angular/cli@9.0.6
pre_build:
commands:
- npm install
build:
commands:
- ng build --prod
- aws cloudfront create-invalidation --distribution-id {cloudfront id} --paths '/*'
artifacts:
base-directory: dist/{project name}
files:
- '**/*'
version: 0.2
phases:
install:
runtime-versions:
nodejs: 16
commands:
- npm install -g @angular/cli@9.0.6
pre_build:
commands:
- npm install
build:
commands:
- ng build --prod
- aws cloudfront create-invalidation --distribution-id EGVGG05FLOT0Z --paths '/*'
artifacts:
base-directory: dist/my-angular-project
files:
- '**/*'
Comments
Post a Comment