redhat-actions / buildah-build

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

[FEATURE] buildah in container #124

Open amezin opened 10 months ago

amezin commented 10 months ago

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

Buildah version on Ubuntu 22.04 GitHub-hosted action runners is rather old (1.23.1 - from Ubuntu repositories), not supporting --cache-to. Even through mixing and matching packages from multiple Ubuntu releases, you can only get 1.28.2 - where registry cache still isn't working correctly.

Describe the solution you'd like

Would be nice if this action supported running buildah in a container (i.e. quay.io/buildah/stable image) transparently. With the ability to get the built image in "host" podman storage.

Describe alternatives you've considered

  1. Just run the image using podman/docker. But then I completely lose the convenience of this action.

  2. Run the entire workflow/job using buildah image. But I need the ubuntu-22.04 environment for other steps. Passing the image between jobs as a tar archive artifact would be slow and could probably hit GitHub limits.

Additional context