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

Wazuh Server Detecting unauthorized processes

Autodesk Maya 2024 Install Windows 11