This is my Current Setup:
- Gets repository from Bitbucket
- Builds the docker image using the Amazon Linux 2 AWS managed image
- Push the image to ECR
I am now sometimes getting the toomanyrequests error during the docker build phase. So, now I want to login to my docker hub account and get rid of this issue.
How do I go about logging into docker hub account only for the build phase? Should I use the buildspec.yml for logging in? But that would conflict with the AWS ecr login, right?