From: Bastian Dehn Date: Mon, 11 May 2026 12:59:29 +0000 (+0200) Subject: add reproducable build with builder image X-Git-Tag: v1.1.31^2~11^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=fd8cb837f1a0a29339138899e1c90679faf9cadf;p=sane-kds-s2000w-net.git add reproducable build with builder image --- diff --git a/builder/Containerfile.template b/builder/Containerfile.template index ec2d5ba..12ced21 100644 --- a/builder/Containerfile.template +++ b/builder/Containerfile.template @@ -5,6 +5,7 @@ RUN apt-get update \ build-essential \ cmake \ file \ + git \ && apt-get clean \ && rm --recursive --force /var/lib/apt/lists/* RUN apt-get update \ diff --git a/builder/run b/builder/run index 4ae6cb9..d5961fb 100644 --- a/builder/run +++ b/builder/run @@ -1,5 +1,10 @@ #!/bin/bash +get_source_date() +{ + cd /src && export SOURCE_DATE_EPOCH=$(git log --max-count=1 --pretty="%ct") +} + run_tests() { mkdir --parents /app/tests && cd /app/tests @@ -40,6 +45,7 @@ copy_package() main() { source /etc/os-release + get_source_date || return $? run_tests || return $? build_package || return $? copy_package || return $?