Skip to content

Commit

Permalink
perf: update images pull from aliyun mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Dec 20, 2024
1 parent 0da23c7 commit 91077df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,10 @@ function pull_image() {
fi
fi

docker pull "${pull_args}" "${full_image_path}"
if [[ "${full_image_path}" != "${image}" ]]; then
echo " -> [${full_image_path}]"
fi
docker pull ${pull_args} "${full_image_path}"
if [[ "${full_image_path}" != "${image}" ]]; then
docker tag "${full_image_path}" "${image}"
docker rmi -f "${full_image_path}"
Expand Down

0 comments on commit 91077df

Please sign in to comment.