Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public ECR #116

Closed
RickyCook opened this issue Dec 3, 2020 · 11 comments
Closed

Public ECR #116

RickyCook opened this issue Dec 3, 2020 · 11 comments
Labels
feature-request A feature should be added or improved.

Comments

@RickyCook
Copy link

When giving a public ECR like this (to push an image):

      - name: Login to Amazon ECR
        id: login-ecr
        uses: aws-actions/amazon-ecr-login@v1
        with:
          registries: public.ecr.aws/deadbeef

The step fails and gives the error:

Member must satisfy regular expression pattern: [0-9]{12}
@allisaurus allisaurus added the feature-request A feature should be added or improved. label Dec 7, 2020
@danielpacak
Copy link

danielpacak commented Dec 17, 2020

The registries input param seems to be very confusing. Reading the code https://github.com/aws-actions/amazon-ecr-login/blob/master/action.yml#L8 it expects a comma-separated list of Account IDs. This would justify such regexp error.

@danielpacak
Copy link

danielpacak commented Dec 17, 2020

IIUC there's code change required to use aws.ECRPUBLIC service to get login credentials. Anyway, I'd love to see the confirmation from maintainers how we can publish to ECR Gallery with this awesome action!

@Malax
Copy link

Malax commented Jan 13, 2021

In case anyone has the same problem and is looking for a solution: https://github.com/docker/login-action can be used to login into public ECR.

@fardin01
Copy link

fardin01 commented Feb 4, 2021

In case anyone has the same problem and is looking for a solution: https://github.com/docker/login-action can be used to login into public ECR.

This action does not support IAM roles out of the box, does it?

@roimor
Copy link

roimor commented Aug 30, 2021

@danielpacak @RickyCook @allisaurus
do you know if this was implemented ?

@heanzyzabala
Copy link

Any updates on this pls?

@marcelloromani
Copy link

marcelloromani commented Jan 11, 2022

This requires a code change, this actions at the moment only supports Private ECRs

https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ECRPUBLIC.html

I believe the registries parameters implicitly refers to the default (i.e. private) ECR of the specified AWS accounts.

JoelBCarter added a commit to XYOracleNetwork/sdk-xyo-react-js that referenced this issue Apr 13, 2022
JoelBCarter added a commit to XYOracleNetwork/sdk-xyo-react-js that referenced this issue Apr 13, 2022
@jpdsteno
Copy link

Would love for this to be implemented soon. Having to use two discrete actions to login to each ECR registry (public and private) is not great.

@jlbutler
Copy link
Contributor

jlbutler commented May 11, 2022

Hi everyone! This has been here a while, we're going to get some things done around this very soon.

Would you prefer that support for ECR Public is added to this action, or should we create a second action for ECR Public login and keep this one focused on ECR?

Thanks!

@gmeligio
Copy link

It would be great if this action supports both private and public repositories. The name is intuitive, and developers have already tried to use it for both cases. One similar action that supports different types of repositories is docker/build-push-action and it's a great experience. Thank you for your work!

@berviantoleo
Copy link
Contributor

Hi everyone! This has been here a while, we're going to get some things done around this very soon.

Would you prefer that support for ECR Public is added to this action, or should we create a second action for ECR Public login and keep this one focused on ECR?

Thanks!

I prefer to add ECR Public in this action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests