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.
This commit is contained in:
Alex Pyrgiotis 2024-12-10 11:12:01 +02:00
parent 6a5e76f2b4
commit 909560353d
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -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.