Skip to content

Commit cf625ef

Browse files
committed
Fix script correctness
1 parent 3052d96 commit cf625ef

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

scripts/gen_protos_docker.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
import os
22
import subprocess
33

4-
subprocess.run(["docker", "build", "-f", "scripts/_proto/Dockerfile", "."])
5-
image_id = subprocess.check_output(["docker", "images", "-q"], text=True).split()[0]
4+
# Build the Docker image and capture its ID
5+
result = subprocess.run(
6+
["docker", "build", "-q", "-f", "scripts/_proto/Dockerfile", "."],
7+
capture_output=True,
8+
text=True,
9+
check=True,
10+
)
11+
image_id = result.stdout.strip()
12+
613
subprocess.run(
714
[
815
"docker",
@@ -13,6 +20,7 @@
1320
"-v",
1421
f"{os.getcwd()}/temporalio/bridge/proto:/bridge_new",
1522
image_id,
16-
]
23+
],
24+
check=True,
1725
)
18-
subprocess.run(["uv", "run", "poe", "format"])
26+
subprocess.run(["uv", "run", "poe", "format"], check=True)

0 commit comments

Comments
 (0)