Skip to content

Commit 6c26bf8

Browse files
committed
Create docker release images for cpp dev containers
1 parent 0dd7207 commit 6c26bf8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker/build_upload_release.py

+20
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@
3636
f"./build_image.sh -g -cv cu121 -t {organization}/torchserve:latest-gpu",
3737
dry_run,
3838
)
39+
try_and_handle(
40+
f"./build_image.sh -bt dev -cpp -t {organization}/torchserve:latest-cpp-dev-cpu",
41+
dry_run,
42+
)
43+
try_and_handle(
44+
f"./build_image.sh -bt dev -g -cv cu121 -cpp -t {organization}/torchserve:latest-cpp-dev-gpu",
45+
dry_run,
46+
)
3947
try_and_handle(
4048
f"docker tag {organization}/torchserve:latest {organization}/torchserve:latest-cpu",
4149
dry_run,
@@ -48,13 +56,25 @@
4856
f"docker tag {organization}/torchserve:latest-gpu {organization}/torchserve:{check_ts_version()}-gpu",
4957
dry_run,
5058
)
59+
try_and_handle(
60+
f"docker tag {organization}/torchserve:latest-cpp-dev-cpu {organization}/torchserve:{check_ts_version()}-cpp-dev-cpu",
61+
dry_run,
62+
)
63+
try_and_handle(
64+
f"docker tag {organization}/torchserve:latest-cpp-dev-gpu {organization}/torchserve:{check_ts_version()}-cpp-dev-gpu",
65+
dry_run,
66+
)
5167

5268
for image in [
5369
f"{organization}/torchserve:latest",
5470
f"{organization}/torchserve:latest-cpu",
5571
f"{organization}/torchserve:latest-gpu",
72+
f"{organization}/torchserve:latest-cpp-dev-cpu",
73+
f"{organization}/torchserve:latest-cpp-dev-gpu",
5674
f"{organization}/torchserve:{check_ts_version()}-cpu",
5775
f"{organization}/torchserve:{check_ts_version()}-gpu",
76+
f"{organization}/torchserve:{check_ts_version()}-cpp-dev-cpu",
77+
f"{organization}/torchserve:{check_ts_version()}-cpp-dev-gpu",
5878
]:
5979
try_and_handle(f"docker push {image}", dry_run)
6080

0 commit comments

Comments
 (0)