Build failing: repository name must be lowercase

/usr/bin/docker buildx build --build-arg
ERROR: invalid tag “registry.fly.io/xxxProject-9744:main-
435799645ef10288d92a0f0dcca395bf6581b1d0”: repository name must be lowercase

This is the error I am getting. I just started the project and this is the first deployment. First the project folder was xxxProject. After getting this error I changes it to xxx-project.
Still having the problem. How can I solve it?

Thanks in advance.

Check the app field in your fly.toml file.

1 Like

Thanks for the suggestion.
I changed it to xxxproject now I get a 404 error.

ERROR: failed to solve: failed to push registry.fly.io/xxxproject-9744:main-790c49957f36dc378ed821cd05a16cf67e83ba8e: unexpected status: 404 Not Found

Any tips to move forward?

I think I got the solution. I will update if it works. Was a silly mistake.

The issue was the app created on fly and the app name in fly.toml were not matching. Thanks @simse for pointing me to the right place.

1 Like

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