File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,13 @@ def merge_tags(tag: str, push_to_registry: bool) -> None:
57
57
except plumbum .ProcessExecutionError :
58
58
LOGGER .info (f"Manifest { tag } doesn't exist" )
59
59
60
- LOGGER .info (f"Creating manifest for tag: { tag } " )
61
- docker ["manifest" , "create" , tag ][all_platform_tags ] & plumbum .FG
62
- LOGGER .info (f"Successfully created manifest for tag: { tag } " )
63
-
64
60
if push_to_registry :
61
+ # We need images to have been already pushed to the registry
62
+ # before creating the manifest
63
+ LOGGER .info (f"Creating manifest for tag: { tag } " )
64
+ docker ["manifest" , "create" , tag ][all_platform_tags ] & plumbum .FG
65
+ LOGGER .info (f"Successfully created manifest for tag: { tag } " )
66
+
65
67
LOGGER .info (f"Pushing manifest for tag: { tag } " )
66
68
docker ["manifest" , "push" , tag ] & plumbum .FG
67
69
LOGGER .info (f"Successfully merged and pushed tag: { tag } " )
You can’t perform that action at this time.
0 commit comments