From 60b75d15550b1f584e700751585c016176fe52f6 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Tue, 21 Jan 2025 23:50:52 +0200 Subject: [PATCH] FIXUP: Strip 'v' from image tag --- dev_scripts/reproduce-image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev_scripts/reproduce-image.py b/dev_scripts/reproduce-image.py index 8af46a6b4..970fa34bb 100755 --- a/dev_scripts/reproduce-image.py +++ b/dev_scripts/reproduce-image.py @@ -34,7 +34,7 @@ def git_commit_get(): def git_determine_tag(): - return run("git", "describe", "--long", "--first-parent").decode().strip() + return run("git", "describe", "--long", "--first-parent").decode().strip()[1:] def git_verify(commit, source): @@ -116,7 +116,7 @@ def parse_args(): image_tag = git_determine_tag() # TODO: Remove the local "podman://" prefix once we have started pushing images to a # remote. - default_image_name = "podman://" + IMAGE_NAME + ":" + image_tag + default_image_name = f"podman://{IMAGE_NAME}:{image_tag}" parser = argparse.ArgumentParser( prog=sys.argv[0], @@ -157,7 +157,7 @@ def main(): diffoci_download() tag = f"reproduce-{commit}" - target = f"dangerzone.rocks/dangerzone:{tag}" + target = f"{IMAGE_NAME}:{tag}" logger.info(f"Building container image and tagging it as '{target}'") build_image(tag, args.use_cache)