wohhie
3/20/2020 - 12:01 AM

buildspec.yml file description

FORMAT: "AWS codeCommit" require a build specific yml file in the root directory. This is the format of buildspec.yml file.

version: 0.2

phases: 
  install: 
    runtime-versions: 
      nodejs: 10
    commands:
      - echo "installing something"
  pre_build: 
    commands: 
      - echo "wea re in the pre build phase"
  build: 
    commands: 
      - echo "we are in the build block"
      - echo "we will run some tests"
      - grep - Fq "Congrations" index.html
  post_build: 
    commands: 
      - echo "we are in the post build phase"