I'm quite happy with my #forgejo replacement for #github. i was missing dependabot enforced correctness and installed a Renovate container. IMO it's an improvement over the github approach. love it.

#SelfHosting #DigitalSovereignty #Homelab #OwnYourData

https://github.com/renovatebot/renovate

you are viewing a single comment's thread
view the rest of the comments
[–] 5 points 3 months ago (3 children)

I use renovate bot for my self-hosted forgejo. It works pretty well but I think the documentation could be better. I had some settings in my config.js that was supposed to go into my repo's renovate.json and I had no idea

  • source
  • hideshow 3 child comments
  • [–] [S] 1 point 3 months ago (2 children)

    oh? something specific you can share?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 3 months ago (1 child)

    So I haven't tested this specific example (but it should work):

    "packageRules": [
        {
          "matchDatasources": ["docker"],
          "matchPackageNames": ["ghcr.io/netbootxyz/netbootxyz"],
          "versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-nbxyz(?<build>\\d+)$"
        }
      ]
    

    Netboot.xyz has its docker images tagged in a non-standard way necessitating a custom package rule so that renovate bot can properly pick up updates. I thought this went into the config.js that renovate bot uses for its own configuration but no it goes in your repo's renovate.json file like so:

    {
      "$schema": "https://docs.renovatebot.com/renovate-schema.json",
      "extends": [
        "config:recommended"
      ],
      "packageRules": [
        {
          "matchDatasources": ["docker"],
          "matchPackageNames": ["ghcr.io/netbootxyz/netbootxyz"],
          "versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)-nbxyz(?<build>\\d+)$"
        }
      ],
      "assignees": [
        "UntouchedWagons"
      ],
      "reviewers": [
        "UntouchedWagons"
      ]
    }
    
  • source
  • parent
  • hideshow 1 child comment