fix bug
This commit is contained in:
parent
d033132a26
commit
58d9695425
27
deploy.sh
27
deploy.sh
|
@ -115,17 +115,22 @@ function mirror()
|
||||||
sleep 30
|
sleep 30
|
||||||
compare
|
compare
|
||||||
|
|
||||||
tmps=$(find ./gcr.io_mirror/ -type f \( -iname "*.tmp" \) -exec dirname {} \; | uniq | cut -d'/' -f3-4)
|
while true
|
||||||
|
do
|
||||||
if [ -n "$tmps[@]" ]; then
|
tmps=$(find ./gcr.io_mirror/ -type f \( -iname "*.tmp" \) -exec dirname {} \; | uniq | cut -d'/' -f3-4)
|
||||||
echo -e "${red} wait for push ${tmps[@]}"
|
if [ -n "$tmps[@]" ]; then
|
||||||
for img in ${tmps[@]} ; do
|
echo -e "${red} wait for push ${tmps[@]}"
|
||||||
n=$(echo ${img}|cut -d'/' -f1)
|
for img in ${tmps[@]} ; do
|
||||||
image=$(echo ${img}|cut -d'/' -f2)
|
n=$(echo ${img}|cut -d'/' -f1)
|
||||||
process_run "pull_push_diff $n $image"
|
image=$(echo ${img}|cut -d'/' -f2)
|
||||||
done
|
process_run "pull_push_diff $n $image"
|
||||||
wait ${!}
|
done
|
||||||
fi
|
wait
|
||||||
|
else
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 30
|
||||||
|
done
|
||||||
|
|
||||||
images=($(find ./gcr.io_mirror/ -type f -name "*.tag" |uniq|sort))
|
images=($(find ./gcr.io_mirror/ -type f -name "*.tag" |uniq|sort))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue