我已经为 Magento 构建了一个 Docker 容器,我想安装 Renovate 以保持我的“外部”依赖项是最新的。对于外部依赖项,我指的是 MariaDB、Redis、Varnish 等。
Magento 提供了一个文档文件,其中包含兼容依赖项的列表。例如,Magento 2.4.7-p3 与 MariaDB 10.6 兼容。但是,MariaDB 的最新版本是 11.6.2,因此,Renovate 希望将其更新到 11.6.2。
Renovate 中有没有办法从文档文件中获取版本兼容性?
我通过以下方式实现了它:https://github.com/zsoerenm/magento2-docker/pull/8/files
基本上,每当创建 Pull 请求时,Github 工作流程就会运行,检查 Magento 文档页面的依赖项更新并相应地更新
renovate.json
文件。
我使用
xidel
来抓取网站,结果证明它非常简单,即使依赖项被分成多个表。