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
97 stars 32 forks source link

Support for podman --remote #95

Open dennybaa opened 6 months ago

dennybaa commented 6 months ago

Is your feature request related to a problem? Please describe.

There's possibility that remote podman is used. For example wrapper for podman --remote

Describe the solution you'd like

One possible scenario:

Action should check this scenario. For example, by running podman --remote version, in case (podman --remote is wrapped) then the server is present.

Server:       Podman Engine
Version:      4.9.3
...

So functions which use temporary local storage are not relevant createDockerPodmanImageStroage and invocations such as /runner/tools/bin/podman --root /tmp/podman-from-docker-4BGtIv pull ... must omit this local storage.

Describe alternatives you've considered

Maybe can be an option to set remote: true to use podman --remote. It's not clear yet what is the optimal way to explicitly define operation mode or detection based approach.