Docker hub 自动构建依赖于另一个 docker hub repo

标签 docker continuous-integration automated-tests dockerfile dockerhub

我知道程序以及如何从 GitHub 或 BitBucket 配置自动化 docker hub。

但是我现在要做的是创建两个名为 Test/main 的 docker hub 存储库。和 Test/depend .

第一个仓库 Test/main与 GitHub 连接,每当有新推送时,将自动构建镜像。但我想触发另一个存储库 Test/depend每当测试/主存储库发生更改时。

是否可以配置这样的场景?

最佳答案

这可以通过 DockerHub 完成:

你需要去build settingsTest/depend ,并查找部分 存储库链接 .它说:

Link your Automated Build to another Docker Hub repository, and when that repository is updated, it will automatically trigger a rebuild of this Automated Build.



所以你只需要添加 Test/main在盒子里,你很高兴去!

关于Docker hub 自动构建依赖于另一个 docker hub repo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49209703/

相关文章:

c# - 在 Gitlab CI 管道内运行时,dotnet-reportgenerator 无法找到任何coverage.cobertura.xml

java - 如何运行 headless Selenium 脚本,主机和浏览器独立

java - 如何在 maven-surefire-plugin 中设置并行测试

java - 在 Appium 中使用 Xpath 查找元素的父元素

selenium - 使用 docker 和 selenium 读取本地 URL

apache - 为什么我无法将我的文件复制到 docker 容器中?

docker - 如何在使用 gcloud compute instance update-container 或强制其使用默认驱动程序时设置日志驱动程序 gcplogs?

.net - 在 docker 容器上安装 msi

python - 休息 api 触发大厅管道/工作

场景大纲示例的 cucumber 标签