From 2090179124ab8d71454c6d84e97dfa6ba827174e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 15 Feb 2022 08:55:54 +0100 Subject: [PATCH] The latest image on specific server should also be re tagged --- c2cciutils/publish.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c2cciutils/publish.py b/c2cciutils/publish.py index 44992d19d..2a3a5bcc0 100644 --- a/c2cciutils/publish.py +++ b/c2cciutils/publish.py @@ -327,6 +327,11 @@ def docker( ], check=True, ) + if latest: + subprocess.run( + ["docker", "tag", f"{image_config['name']}:{tag_src}", f"{config['server']}/{image_config['name']}:{tag_src}"], + check=True, + ) subprocess.run( [ "docker",