File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1616from tagging .apps .config import Config
1717from tagging .utils .get_platform import ALL_PLATFORMS
1818from tagging .utils .get_prefix import get_file_prefix_for_platform
19+ from tagging .utils .git_helper import GitHelper
1920
2021docker = plumbum .local ["docker" ]
2122
@@ -95,6 +96,13 @@ def merge_tags(
9596 if not push_to_registry :
9697 args .append ("--dry-run" )
9798
99+ commit_hash_tag = GitHelper .commit_hash_tag ()
100+ if not push_to_registry and merged_tag .endswith (commit_hash_tag ):
101+ LOGGER .info (
102+ f"Not running merge for tag: { merged_tag } as it's a commit SHA tag and it wasn't pushed to registry"
103+ )
104+ return
105+
98106 LOGGER .info (f"Running command: { ' ' .join (args )} " )
99107 docker [args ] & plumbum .FG
100108 if push_to_registry :
You can’t perform that action at this time.
0 commit comments