redhat-actions / push-to-registry

GitHub Action to push a container image to an image registry.
https://github.com/marketplace/actions/push-to-registry
MIT License
100 stars 33 forks source link

[BUG] Normalised image names are not working #72

Closed GTB3NW closed 1 year ago

GTB3NW commented 2 years ago

Version

redhat-actions/push-to-registry@v2

Describe the bug

The image name doesn't seem to correctly normalise. I used the example configs for GHCR, which uses the repository owner variable, but it doesn't convert the entire registry to lowercase. I ended up with an obscure error: unknown transport "ghcr.io/OrgExample/imagename"

Steps to reproduce, workflow links, screenshots

Use IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} when using an org/username with capital letters in it.

GTB3NW commented 2 years ago

cc: @xee5ch - Looks like you tried to tackle this problem here - https://github.com/redhat-actions/push-to-registry/commit/ac5a9d0fd887bf27edcb4efcfda21082a5a78936