From 909560353d2660a8caa3e9b9963180f22f522704 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Tue, 10 Dec 2024 11:12:01 +0200 Subject: [PATCH] Build and tag Dangerzone images Build Dangerzone images and tag them with a unique ID that stems from the Git reop. Note that using tags as image IDs instead of regular image IDs breaks the current Dangerzone expectations, but this will be addressed in subsequent commits. --- install/common/build-image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/common/build-image.py b/install/common/build-image.py index 695bb12..3e2ab71 100644 --- a/install/common/build-image.py +++ b/install/common/build-image.py @@ -59,7 +59,7 @@ def main(): dirty_ident = secrets.token_hex(2) tag = ( subprocess.check_output( - ["git", "describe", "--first-parent", f"--dirty=-{dirty_ident}"], + ["git", "describe", "--long", "--first-parent", f"--dirty=-{dirty_ident}"], ) .decode() .strip()[1:] # remove the "v" prefix of the tag.