From 943371073c921e1791eda4a5b872001f41fc3b2f Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 9 Jan 2022 11:19:20 +0200 Subject: [PATCH] Repeatable-ish builds. Repeatable builds, except for variations in dependencies. --- .gitlab-ci.yml | 2 +- Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b71564..3cd1b7b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ Generate payload: XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" before_script: - apt-get update - - apt-get install -y zip + - apt-get install -y strip-nondeterminism zip script: make payload.zip artifacts: diff --git a/Makefile b/Makefile index 2a768b9..34e5228 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,8 @@ payload.zip: clean requirements.txt $(src) mkdir -p payload cp -a src/* payload/ python3 -m pip install -r requirements.txt -t payload - cd payload && zip -X --exclude __pycache__ --exclude "*.pyc" --exclude test --exclude bin -r ../payload.zip ./ + cd payload && zip -X --exclude __pycache__ --exclude "*.pyc" --exclude test --exclude bin -r ../$@ ./ + strip-nondeterminism $@ .PHONY = clean clean: -- GitLab