@@ -39,7 +39,6 @@ def run_subprocess(cmd: list[str], src: str = "."):
3939 return process .returncode
4040
4141
42- # Function to build Docker image
4342def build_image (
4443 image : str ,
4544 tag : str ,
@@ -116,7 +115,7 @@ def tag_image(
116115 bash_cmd = ["bash" , "-c" , " " .join (tag_cmd )]
117116 if not dry_run :
118117 print ()
119- # Run subprocess command to tag image
118+ # Run subprocess command to tag images
120119 result = run_subprocess (bash_cmd )
121120
122121 # Check for errors
@@ -137,12 +136,12 @@ def push_images(
137136 images : list [str ],
138137 dry_run : bool = False ,
139138):
140- # Construct bash command to push images
139+ # Construct bash command to push images to the repo
141140 push_cmd = [f"for IMAGE in { ' ' .join (images )} ;" , "do podman push $IMAGE;" , "done" ]
142141 bash_cmd = ["bash" , "-c" , " " .join (push_cmd )]
143142 if not dry_run :
144143 print ()
145- # Run subprocess command to push image
144+ # Run subprocess command
146145 result = run_subprocess (bash_cmd )
147146
148147 # Check for errors
@@ -160,14 +159,14 @@ def push_images(
160159
161160
162161def cleanup (dry_run : bool = False ):
163- # Construct bash command to push images
162+ # Construct bash command to clean up Podman repo
164163 cleanup_cmd = [
165164 "podman image prune -f" ,
166165 ]
167166 bash_cmd = ["bash" , "-c" , " " .join (cleanup_cmd )]
168167 if not dry_run :
169168 print ()
170- # Run subprocess command to clean up Podman repo
169+ # Run subprocess command
171170 result = run_subprocess (bash_cmd )
172171
173172 # Check for errors
0 commit comments