我可以为我不是其成员的 public 存储库自动构建 Docker 图像吗?

Can I automate a Docker image build for a public repo I'm not a member of?

我想了解是否有解决方法可以在 hub.docker.com 中为 public 的回购中的 Dockerfile 自动构建 docker 容器,但我我不是会员。

到目前为止,我能看到的唯一方法是 read/write access to the git repo(是的,我可以分叉它,但我必须手动不断更新它)。

我正在寻找一种可以根据对主分支推送更新的回购自动执行的方法。

更新 - 绝对希望有一个工具或策略来做到这一点...我接受以下答案,因为我想不出更好的方法。

简单。分叉 git 存储库。注册或登录 Docker Hub 并创建链接到您的分叉 git 存储库的存储库,然后按照以下步骤操作:

https://docs.docker.com/docker-hub/builds/#link-to-a-hosted-repository-service