File tree 3 files changed +3
-13
lines changed
3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -66,5 +66,5 @@ cp -r ../../third_party .
66
66
if [ " ${MULTI} " == " true" ]; then
67
67
DOCKER_BUILDKIT=1 docker buildx build --file " $DOCKER_FILE " --build-arg BASE_IMAGE=$BASE_IMAGE --platform " ${ARCH} " -t " $DOCKER_TAG " --push .
68
68
else
69
- DOCKER_BUILDKIT=1 docker buildx build --file " $DOCKER_FILE " --build-arg BASE_IMAGE=$BASE_IMAGE -t " $DOCKER_TAG " --load .
69
+ DOCKER_BUILDKIT=1 docker buildx build --file " $DOCKER_FILE " --build-arg BASE_IMAGE=$BASE_IMAGE -t " $DOCKER_TAG " --push .
70
70
fi
Original file line number Diff line number Diff line change 39
39
dry_run ,
40
40
)
41
41
42
- for image in [
43
- f"{ organization } /torchserve-kfs:{ check_ts_version ()} -gpu" ,
44
- ]:
45
- try_and_handle (f"docker push { image } " , dry_run )
46
-
47
42
# Cleanup built images
48
43
if args .cleanup :
49
44
try_and_handle (f"docker system prune --all --volumes -f" , dry_run )
Original file line number Diff line number Diff line change 43
43
dry_run ,
44
44
)
45
45
46
- # Push Nightly images to official PyTorch Dockerhub account
47
- try_and_handle (f"docker push { organization } /{ gpu_version } " , dry_run )
48
-
49
46
# Tag nightly images with latest
50
47
try_and_handle (
51
48
f"docker buildx imagetools create --tag { organization } /{ project } :latest-cpu { organization } /{ cpu_version } " ,
52
49
dry_run ,
53
50
)
51
+
54
52
try_and_handle (
55
- f"docker tag { organization } /{ gpu_version } { organization } /{ project } :latest-gpu " ,
53
+ f"docker buildx imagetools create -- tag { organization } /{ project } :latest-gpu { organization } /{ gpu_version } " ,
56
54
dry_run ,
57
55
)
58
56
59
- # Push images with latest tag
60
- try_and_handle (f"docker push { organization } /{ project } :latest-gpu" , dry_run )
61
-
62
57
# Cleanup built images
63
58
if args .cleanup :
64
59
try_and_handle (f"docker system prune --all --volumes -f" , dry_run )
You can’t perform that action at this time.
0 commit comments