feat: unify Dockerfile with ARG HERMETIC and add hermetic CI#3048
feat: unify Dockerfile with ARG HERMETIC and add hermetic CI#3048Fortune-Ndlovu wants to merge 1 commit into
Conversation
Replace the dual-Dockerfile approach (.rhdh/docker/Dockerfile + Dockerfile) with a single Dockerfile using ARG HERMETIC=false to conditionally skip dnf/microdnf updates and source /cachi2/cachi2.env in hermetic (Konflux+Cachi2) builds. Add a GitHub Actions workflow (pr-hermetic-build.yaml) that runs on every PR, using Hermeto to prefetch Go modules and RPMs, then builds with --network=none to catch hermetic build failures upstream before they reach downstream. - Delete redundant .rhdh/docker/Dockerfile - Add .github/actions/docker-build composite action (Hermeto-based) - Add .github/workflows/pr-hermetic-build.yaml - Add Makefile target: image-build-hermetic - Update update-rpm-lockfile.yaml and rpms.in.yaml to reference Dockerfile Signed-off-by: fndlovu <fndlovu@redhat.com>
|
PR Summary by QodoUnify Dockerfile with HERMETIC arg and add hermetic PR build workflow Description
Diagram
High-Level Assessment
Files changed (6)
|
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |



Replace the dual-Dockerfile approach (
.rhdh/docker/Dockerfile+Dockerfile) with a single Dockerfile usingARG HERMETIC=falseto conditionally skipdnf/microdnfupdates and source/cachi2/cachi2.envin hermetic (Konflux+Cachi2) builds.Add a GitHub Actions workflow (
pr-hermetic-build.yaml) that runs on every PR, using Hermeto to prefetch Go modules and RPMs, then builds with--network=noneto catch hermetic build failures upstream before they reach downstream.Description
Which issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer