This is an automated email from the ASF dual-hosted git repository.

manirajv06 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-release.git


The following commit(s) were added to refs/heads/master by this push:
     new 350d502  [YUNIKORN-3340] use reproducible build in image release (#235)
350d502 is described below

commit 350d502c89ff719baca480a74066853cedb1fef4
Author: Wilfred Spiegelenburg <[email protected]>
AuthorDate: Thu Jul 30 11:35:04 2026 +0530

    [YUNIKORN-3340] use reproducible build in image release (#235)
    
    Force REPRODUCIBLE_BUILDS=1 for images build as part of the release
    process.
    
    Closes: #235
    
    Signed-off-by: Manikandan R <[email protected]>
---
 release-tools/build-image.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/release-tools/build-image.py b/release-tools/build-image.py
index 94a8c9d..78ce448 100755
--- a/release-tools/build-image.py
+++ b/release-tools/build-image.py
@@ -196,10 +196,11 @@ def build_manifest(manifest, version):
 def build_image(base_dir, image, arch, version):
     cmd = get_cmd("make")
     my_env = os.environ.copy()
-    my_env["QUIET"] = "--quiet"      # stop image build from being chatty
-    my_env["VERSION"] = version      # force version, just be safe
-    my_env["HOST_ARCH"] = arch       # the architecture override
-    my_env["REGISTRY"] = repository  # repository override (test only)
+    my_env["QUIET"] = "--quiet"          # stop image build from being chatty
+    my_env["VERSION"] = version          # force version, just be safe
+    my_env["HOST_ARCH"] = arch           # the architecture override
+    my_env["REPRODUCIBLE_BUILDS"] = "1"  # always use reproducible builds
+    my_env["REGISTRY"] = repository      # repository override (test only)
     command = [cmd, "clean", image]
     # build the image using make
     retcode = subprocess.call(command, cwd=base_dir, env=my_env, 
stdout=subprocess.DEVNULL)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to