-
Notifications
You must be signed in to change notification settings - Fork 13.7k
增加一个特殊前缀,用于每次只拉取当前更改的镜像 #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
因为每次全量推实在是太慢了 |
每次根据git log 查看变化的,再操作不行吗 |
哈哈,那这肯定也是ok的
Mad
***@***.***
…------------------ 原始邮件 ------------------
发件人: "tech-shrimp/docker_image_pusher" ***@***.***>;
发送时间: 2024年7月18日(星期四) 上午10:30
***@***.***>;
***@***.******@***.***>;
主题: Re: [tech-shrimp/docker_image_pusher] 增加一个特殊前缀,用于每次只拉取当前更改的镜像 (Issue #113)
每次根据git log 查看变化的,再操作不行吗
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
全量确实太慢了 |
把之前推过的都用#注释起来就行了啊 |
其实可以先拉取阿里云上存的容器的信息,进行比对,如果重复就跳过,这样是最合理的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是否考虑增加一个特殊的前缀,拼接在镜像前面,用于判断,此次只推这个镜像,而不是每次都是全量推。
类似:curnew/$namespec/$image
获取命名空间
if [[ "${line}" == curenew/* ]]; then
# 去掉镜像名称前的curenew/
image=${line#*curenew/}
echo "image $image"
line=${line#*curenew/}
echo "最终镜像为 image $line"
else
continue
fi
docker pull $line
The text was updated successfully, but these errors were encountered: