No basic auth credentials pushing to ECR


#1

I’m trying to push my build out to AWS ECR. Here’s the relevant parts of my config:

  - setup_remote_docker
  - run:
      name: Push application Docker image
      command: |
        login="$(aws ecr get-login --region us-east-1 --no-include-email)"
        ${login}
        docker build -t nnnnn.dkr.ecr.us-east-1.amazonaws.com/sample:test .
        docker push nnnnn.dkr.ecr.us-east-1.amazonaws.com/sample:test

AWS credentials all set up via environment variables, but the builds are failing with no basic auth credentials. What am I missing here?


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.