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...
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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...