feat(oci): Use Buildah #158

Merged
metal3d merged 1 commits from features/oci-image into master 2025-08-04 14:18:36 +00:00
Owner

This pull request updates the OCI image build process by transitioning from Docker-based actions to Red Hat's buildah and push-to-registry GitHub Actions. The changes also include improvements to the Containerfile to enforce version handling and streamline the build process.

Workflow updates for OCI image building:

  • .github/workflows/build-oci.yaml: Changed the trigger from release events to push events for all tags. Updated the workflow to use buildah-build and push-to-registry actions instead of Docker-based actions, simplifying the build and push steps. Added permissions for packages: write and contents: read to the workflow. [1] [2]

Containerfile enhancements:

  • oci/katenary/Containerfile: Added a check to ensure the VERSION build argument is set. Replaced go install with go build to include version information in the binary using linker flags. Updated paths and build steps to align with the new build process.And set version the right way...
This pull request updates the OCI image build process by transitioning from Docker-based actions to Red Hat's `buildah` and `push-to-registry` GitHub Actions. The changes also include improvements to the `Containerfile` to enforce version handling and streamline the build process. ### Workflow updates for OCI image building: * [`.github/workflows/build-oci.yaml`](diffhunk://#diff-56dbdcf547cf0e61685773f61376770ae2df223afcc33c9fcaf2f5335699cc7aL4-R6): Changed the trigger from `release` events to `push` events for all tags. Updated the workflow to use `buildah-build` and `push-to-registry` actions instead of Docker-based actions, simplifying the build and push steps. Added permissions for `packages: write` and `contents: read` to the workflow. [[1]](diffhunk://#diff-56dbdcf547cf0e61685773f61376770ae2df223afcc33c9fcaf2f5335699cc7aL4-R6) [[2]](diffhunk://#diff-56dbdcf547cf0e61685773f61376770ae2df223afcc33c9fcaf2f5335699cc7aR15-L37) ### Containerfile enhancements: * [`oci/katenary/Containerfile`](diffhunk://#diff-dac88df79659c1a9e083208c23c8c3589ea9e1c55467cf12eedccba3b4958389L4-R23): Added a check to ensure the `VERSION` build argument is set. Replaced `go install` with `go build` to include version information in the binary using linker flags. Updated paths and build steps to align with the new build process.And set version the right way...
Sign in to join this conversation.
No description provided.