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

Commit

Permalink
Merge branch 'master' of github.com:Flux7Labs/ecs-workshop-app-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Hussain committed Aug 23, 2017
2 parents 363c980 + 7d19ac6 commit fc69d8f
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 fc69d8f

Please sign in to comment.