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

If registries number start from 0, then 0 is truncated #225

Closed
cojack opened this issue Nov 18, 2021 · 1 comment
Closed

If registries number start from 0, then 0 is truncated #225

cojack opened this issue Nov 18, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@cojack
Copy link

cojack commented Nov 18, 2021

Hi,
I have the error:

Error: Invalid parameter at 'registryIds' failed to satisfy constraint: 'Member must satisfy constraint: [Member must satisfy regular expression pattern: [0-9]{12}]'

Funny thing is that, that my other builds are working like a charm with the same configuration, the difference is that number, and I've checked it, it satisfies the regular expression of [0-9]{12} but still, it breaks, any advice?

@cojack
Copy link
Author

cojack commented Nov 18, 2021

There is a bug, if your registries number start from 0, then it's removed:

##[debug]Evaluating condition for step: 'Login to Amazon ECR'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Login to Amazon ECR
##[debug]Register post job cleanup for action: aws-actions/amazon-ecr-login@v1
##[debug]Loading inputs
##[debug]Loading env
Run aws-actions/amazon-ecr-login@v1
##[debug]Requesting auth token for 1 registries:
##[debug]  '61725161810' <--- here should be zero at the beginning 
Error: Invalid parameter at 'registryIds' failed to satisfy constraint: 'Member must satisfy constraint: [Member must satisfy regular expression pattern: [0-9]{12}]'
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Login to Amazon ECR

@cojack cojack changed the title Error: Invalid parameter at 'registryIds' failed to satisfy constraint: 'Member must satisfy constraint: [Member must satisfy regular expression pattern: [0-9]{12}]' If registries number start from 0, then 0 is truncated Nov 18, 2021
@arjraman arjraman added the bug Something isn't working label Jul 6, 2022
@arjraman arjraman closed this as completed Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants