Skip to content

Commit 37a87ce

Browse files
committed
Fixed comments
1 parent 59f0c6b commit 37a87ce

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/murfey/cli/build_images.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def run_subprocess(cmd: list[str], src: str = "."):
3939
return process.returncode
4040

4141

42-
# Function to build Docker image
4342
def 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

162161
def 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

Comments
 (0)