redhat-actions / buildah-build

GitHub Action to use 'buildah' to build a container image.
https://github.com/marketplace/actions/buildah-build
MIT License
142 stars 35 forks source link

[FEATURE] Use podman as fallback for Containerfile/Dockerfile builds when buildah is unavailable #131

Open travier opened 10 months ago

travier commented 10 months ago

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

In some cases (see https://github.com/redhat-actions/push-to-registry/pull/90), the version of podman installed by default in the Ubuntu 22.04 runners is too old.

To workaround this issue, we can use a custom image. Unfortunately, the podman upstream image does not include buildah (see https://github.com/containers/podman/issues/20771), so we can not use it directly to both build and push an image using actions from this org.

Describe the solution you'd like

For Containerfile/Dockerfile builds, fallback to podman if buildah is not available.

Describe alternatives you've considered

Make a custom image that includes both: https://github.com/travier/podman-action

Additional context

See:

travier commented 10 months ago

Another option would be to make another "podman only" action.