buildah-build icon indicating copy to clipboard operation
buildah-build copied to clipboard

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

Open travier opened this issue 2 years ago • 1 comments

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:

  • https://github.com/redhat-actions/push-to-registry/pull/90
  • https://github.com/containers/podman/issues/20771
  • https://github.com/travier/cosign-test
  • https://github.com/travier/podman-action

travier avatar Nov 28 '23 14:11 travier

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

travier avatar Nov 28 '23 14:11 travier