Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom version defs for renovate #31

Closed
cdkharris opened this issue Oct 9, 2024 · 2 comments · Fixed by #43
Closed

Custom version defs for renovate #31

cdkharris opened this issue Oct 9, 2024 · 2 comments · Fixed by #43
Labels

Comments

@cdkharris
Copy link
Member

Renovate can track versions in non-standard places, e.g. the versions for JupyterHub and other dependancies.

@cdkharris
Copy link
Member Author

in the renovate json put this: (replace fileMatch and matchStrings with some suitable regex)

{
  customManagers: [
    {
      "customType": "regex",
      "fileMatch": ["^build-slurm-rpms$"],
      "matchStrings": [
        '#\\srenovate:\\sdatasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s*export .*?_VERSION=\\"(?<currentValue>.*)\\"\\s*'
        ],
      "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
    }
  ]
}

and in the files matchéd put something like this:

# renovate: datasource=github-tags depName=schedmd/slurm versioning=loose
export SLURM_VERSION="24.05.0-0rc1"

@cdkharris
Copy link
Member Author

can group the versions variables into a separate tfvars file? or should i leave it in the control of each module resource instance?

@cdkharris cdkharris linked a pull request Oct 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant