From cf56d95d430be8db2b8caf7176fd786c9f8164e6 Mon Sep 17 00:00:00 2001 From: Shen Teng Date: Wed, 18 Dec 2024 19:17:47 +0000 Subject: [PATCH] enable docker push --- serving/docker/scripts/push_image_from_ECR.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/serving/docker/scripts/push_image_from_ECR.sh b/serving/docker/scripts/push_image_from_ECR.sh index abb83a1e3..e5577351f 100755 --- a/serving/docker/scripts/push_image_from_ECR.sh +++ b/serving/docker/scripts/push_image_from_ECR.sh @@ -22,6 +22,7 @@ images=(cpu aarch64 cpu-full pytorch-inf2 pytorch-gpu lmi tensorrt-llm) from_repo=$AWS_TMP_ECR_REPO +set -x for image in "${images[@]}"; do if [[ "$mode" == "release" ]]; then @@ -35,8 +36,7 @@ for image in "${images[@]}"; do if [[ "$mode" == "nightly" ]]; then tag="$image-nightly" fi - echo docker pull $from_repo:$image-$mode-$commit_sha docker pull $from_repo:$image-$mode-$commit_sha - echo docker tag $from_repo:$image-$mode-$commit_sha $to_repo:$tag - echo docker push $to_repo:$tag + docker tag $from_repo:$image-$mode-$commit_sha $to_repo:$tag + docker push $to_repo:$tag done \ No newline at end of file