version: 0.2

phases:
  build:
    commands:
      - echo Build started on `date`
      - cd build && make ${COIN} BUILDS=${BUILD}
  post_build:
    commands:
      - echo Build completed on `date`

artifacts:
  files:
    - build/artifacts/${COINNAME}/${ARCH}/*

version: 0.2

phases:
  pre_build:
    commands:
      - echo Logging in to Amazon ECR...
      - aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 890058568674.dkr.ecr.us-west-2.amazonaws.com

  build:
    commands:
      - echo Build started on `date`
      - cd build && make ${COIN} BUILDS=${BUILD}
  post_build:
    commands:
      - echo Build completed on `date`

artifacts:
  files:
    - build/artifacts/${COINNAME}/${ARCH}/*

Revert "Looks like no need to login"
Revert "Looks like no need to login"

This reverts commit 380bb8d1b292835c7d0932e5e6db012b83eb9f51.
