Skip to content

Commit

Permalink
feat(deployment): Added a command to create imagedefinitions.json fil…
Browse files Browse the repository at this point in the history
…e in buildspec for ECS CodeDeploy action
  • Loading branch information
b32147 committed Aug 11, 2021
1 parent 273fae0 commit 057fa25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ phases:
- 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
- echo Generate imagedefinitions.json file
- printf "[{\"name\":\"$CONTAINER_NAME\",\"imageUri\":\"$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG\"}]" > imagedefinitions.json

artifacts:
files: imagedefinitions.json

0 comments on commit 057fa25

Please # to comment.