Skip to content

Instantly share code, notes, and snippets.

@TheDeveloper
Created December 18, 2017 15:17
Show Gist options
  • Select an option

  • Save TheDeveloper/0bd7828cd7ab28bf5a0ed4d0c4565536 to your computer and use it in GitHub Desktop.

Select an option

Save TheDeveloper/0bd7828cd7ab28bf5a0ed4d0c4565536 to your computer and use it in GitHub Desktop.

Revisions

  1. TheDeveloper created this gist Dec 18, 2017.
    15 changes: 15 additions & 0 deletions buildspec.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    version: 0.1

    phases:
    pre_build:
    commands:
    - $(aws ecr get-login --region $AWS_REGION)
    - pip install docker-compose
    build:
    commands:
    - docker build -t $APP_IMAGE .
    - COMPOSE_HTTP_TIMEOUT=200 docker-compose run --rm test
    - docker push $APP_IMAGE
    post_build:
    commands:
    - echo Build completed on `date`