From 84cfc8b5bf35e3670981543ecdfaa75b756ddfde Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sat, 17 Jul 2021 02:38:07 +0200 Subject: [PATCH] fix: docker's -t flag expects a full image name --- tagging/tag_image.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tagging/tag_image.py b/tagging/tag_image.py index ae795e7d..105da483 100755 --- a/tagging/tag_image.py +++ b/tagging/tag_image.py @@ -38,7 +38,9 @@ def tag_image(short_image_name: str, owner: str) -> None: if tags: env_name = f'{short_image_name.replace("-", "_")}_EXTRA_TAG_ARGS' - docker_build_tag_args = "-t " + " -t ".join(tags) + docker_build_tag_args = " ".join( + [f"-t {owner}/{short_image_name}:{tag}" for tag in tags] + ) github_set_env(env_name, docker_build_tag_args)