Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from ali-hussain/master
Browse files Browse the repository at this point in the history
Make dummy buildspec.yml and testspec.yml
  • Loading branch information
ali-hussain authored Aug 22, 2017
2 parents 22e15ca + 740c888 commit 7d19ac6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 1 addition & 7 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ version: 0.2
phases:
pre_build:
commands:
- echo Logging in to Amazon ECR...
- $(aws ecr get-login --region $AWS_DEFAULT_REGION)
- echo Build setup on `date`
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t $IMAGE_REPO_NAME .
- docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG
post_build:
commands:
- echo Build completed on `date`
- echo Pushing the Docker image...
- docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG
12 changes: 12 additions & 0 deletions testspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 0.2

phases:
pre_build:
commands:
- echo Test setup on `date`
build:
commands:
- echo Test started on `date`
post_build:
commands:
- echo Test completed on `date`

0 comments on commit 7d19ac6

Please sign in to comment.