aws-actions / amazon-ecr-login

Logs into Amazon ECR with the local Docker client.
MIT License
908 stars 174 forks source link

Unable to login into a public ecr #620

Open realtebo opened 4 months ago

realtebo commented 4 months ago

I am simply trying this

  - name: Login to Amazon ECR Public
    id: login-ecr-public
    uses: aws-actions/amazon-ecr-login@v2
    with:
      registry-type: public

I got an error about missing region

but there is no 'region' between available inputs

htpaf commented 3 months ago

Config:

      - id: ecr-login
        name: ECR Login
        uses: aws-actions/amazon-ecr-login@v2

Output when running:

Run aws-actions/amazon-ecr-login@v2
  with:
    mask-password: true
    registry-type: private
    skip-logout: false
Error: Region is missing

Same for @v1.

Is it a requirement to run aws-actions/configure-aws-credentials as the immediate prior step to aws-actions/amazon-ecr-login?

romankydybets commented 3 months ago

this would help you to login https://github.com/aws-actions/amazon-ecr-login?tab=readme-ov-file#configure-credentials