Github Actions: Repository name must be lowercase #27086
-
My username contains uppercase letters and this hinders my ability to push to ghcr.io. Are there any workarounds for this? I just want to push to the registry and see it on my GitHub Repository.
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Image names must be lower case, try using the lower case version of your username. You can create an environment variable with the lower case version, so you don’t have to hardcode it. Looking at your workflow I guess
And then use the |
Beta Was this translation helpful? Give feedback.
-
Will use, thank you. I thought GitHub usernames were case-sensitive. |
Beta Was this translation helpful? Give feedback.
-
I think GitHub is case-preserving as opposed to case-sensitive. I’m not sure I’d bother. |
Beta Was this translation helpful? Give feedback.
-
It’s a general Docker limitation, not specific to GHCR. |
Beta Was this translation helpful? Give feedback.
-
If you use our docker-publish default workflow you’ll get a lot of this for free. The metadata action manages the lowercasing of names and extracts the right extra data for you. |
Beta Was this translation helpful? Give feedback.
Image names must be lower case, try using the lower case version of your username. You can create an environment variable with the lower case version, so you don’t have to hardcode it. Looking at your workflow I guess
github.repository_owner
is the issue, so you could do this:And then use the
OWNER_LC
environment variable instead ofgithub.repository_owner
.