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

Popular posts from this blog

How to install and configure OSSEC server and client

Autodesk Maya 2024 Install Windows 11

How to install nuke in windows 10 and windows 11,Installing Nuke on Windows, Install Nuke on Windows