如何配置翻新以从gitlab释放切换到git标签

发布于 2025-02-03 01:52:55 字数 688 浏览 2 评论 0原文

我的目标是在我的gitlab-ci.yml文件中更新所有内容。默认情况下,没有任何自定义配置对创建MR进行翻新MR,其中包括基于GitLab-Release的更新。

但是今天,我仅根据标签包括一些,并且没有与此标签关联的任何版本。我正在寻找一个更新的解决方案,还包括这些解决方案。

为了解释,如果我有myprojet命名1.2.3和TAG 1.21 1

include:
  # Bash template
  - project: "myproject"
    ref: "1.2.2"
    file: "templates/gitlab-ci.yml"

翻新检测的检测是1.2.3上的新版本 - 还可以 如果我有:

include:
  # Bash template
  - project: "myproject"
    ref: "1.1"
    file: "templates/gitlab-ci.yml"

装修不检测标签<代码> 1.2 myproject

My goal is to update all includes in my gitlab-ci.yml files. By default without any custom configuration renovate create MR with an include update based on gitlab-release.

But today, I have some includes only based on tag and there isn't any release associated to this tag. I looking for a solution to update also these includes.

To explain, if I have a release for myprojet named 1.2.3 and tag 1.2 and 1

include:
  # Bash template
  - project: "myproject"
    ref: "1.2.2"
    file: "templates/gitlab-ci.yml"

renovate detects there is a new release on 1.2.3 - It's OK
If I have :

include:
  # Bash template
  - project: "myproject"
    ref: "1.1"
    file: "templates/gitlab-ci.yml"

renovate don't detect tag named 1.2 for myproject

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

网白 2025-02-10 01:52:55

您是否尝试过Regex经理?
这是一个示例,请为您的需求更改:

  "regexManagers": [
    {
      "fileMatch": ["(^|/)\\.?gitlab-ci\\.yml$"],
      "matchStringsStrategy": "combination",
      "matchStrings": [
          "\\s\\sCHART_SOURCES_URL: \"(?<depName>.*?)\"\n",
              "\\s\\sCHART_SOURCES_VERSION: \"(?<currentValue>.*?)\"\n"
      ],
      "datasourceTemplate": "git-tags"
    }
  ],

我相信您还可以在包规则中使用MatchManagers设置启用= false = false

have you tried regex managers?
here's an example, change it for your needs:

  "regexManagers": [
    {
      "fileMatch": ["(^|/)\\.?gitlab-ci\\.yml
quot;],
      "matchStringsStrategy": "combination",
      "matchStrings": [
          "\\s\\sCHART_SOURCES_URL: \"(?<depName>.*?)\"\n",
              "\\s\\sCHART_SOURCES_VERSION: \"(?<currentValue>.*?)\"\n"
      ],
      "datasourceTemplate": "git-tags"
    }
  ],

i believe you could also set enabled=false for the actual gitlab-ci manager using matchManagers in package rules

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文