feat(oci): Use Buildah #158
Reference in New Issue
Block a user
No description provided.
Delete Branch "features/oci-image"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request updates the OCI image build process by transitioning from Docker-based actions to Red Hat's
buildahandpush-to-registryGitHub Actions. The changes also include improvements to theContainerfileto enforce version handling and streamline the build process.Workflow updates for OCI image building:
.github/workflows/build-oci.yaml: Changed the trigger fromreleaseevents topushevents for all tags. Updated the workflow to usebuildah-buildandpush-to-registryactions instead of Docker-based actions, simplifying the build and push steps. Added permissions forpackages: writeandcontents: readto the workflow. [1] [2]Containerfile enhancements:
oci/katenary/Containerfile: Added a check to ensure theVERSIONbuild argument is set. Replacedgo installwithgo buildto 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...