File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,10 @@ def _dump_push_log(log):
74
74
def main (args ):
75
75
base_name = args .prefix + args .image
76
76
tag_strings = ([args .arch ] if args .arch else []) + (args .fragment or [])
77
+ if args .image_version :
78
+ tag_strings .append (args .image_version )
77
79
tag_name = '-' .join (tag_strings )
80
+
78
81
name = ':' .join ((base_name , tag_name )) if tag_name else base_name
79
82
if args .command == 'name' :
80
83
print (name )
@@ -123,6 +126,8 @@ if __name__ == '__main__':
123
126
help = "Docker image name, e.g. gcc-10:x86" )
124
127
parser .add_argument ('--prefix' , default = 'kernelci/' ,
125
128
help = "Docker image tag prefix" )
129
+ parser .add_argument ('--image-version' , '-V' ,
130
+ help = 'Docker image version tag e.g. 20221011.0' )
126
131
parser .add_argument ('--arch' ,
127
132
help = "CPU architecture, e.g. x86" )
128
133
parser .add_argument ('--fragment' , action = 'append' ,
You can’t perform that action at this time.
0 commit comments