Skip to content

Commit

Permalink
Merge pull request #79 from betadots/renovate-update
Browse files Browse the repository at this point in the history
feat: let renovate update deb package versions in build_versions.yaml
  • Loading branch information
rwaffen authored Dec 6, 2024
2 parents f764ede + 036ed31 commit baa6988
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build_versions.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@

include:
- puppet_release: 7
# renovate: datasource=deb depName=puppet-agent
# renovate: depName=puppet-agent puppetRelease=7
puppet_version: "7.33.0"
# renovate: datasource=deb depName=puppetdb-termini
# renovate: depName=puppetdb-termini puppetRelease=7
puppetdb_termini_version: "7.19.1"
terraform_version: "1.9.5"
# renovate: datasource=deb depName=pdk
# renovate: depName=pdk
pdk_version: "3.3.0.0"
# renovate: datasource=deb depName=puppet-bolt
# renovate: depName=puppet-bolt
bolt_version: "3.30.0"

- puppet_release: 8
# renovate: datasource=deb depName=puppet-agent
# renovate: depName=puppet-agent puppetRelease=8
puppet_version: "8.9.0"
# renovate: datasource=deb depName=puppetdb-termini
# renovate: depName=puppetdb-termini puppetRelease=8
puppetdb_termini_version: "8.7.0"
terraform_version: "1.9.5"
# renovate: datasource=deb depName=pdk
# renovate: depName=pdk
pdk_version: "3.3.0.0"
# renovate: datasource=deb depName=puppet-bolt
# renovate: depName=puppet-bolt
bolt_version: "3.30.0"
22 changes: 22 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,27 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"packageRules": [
{
"matchDatasources": ["deb"],
"matchPackageNames": ["puppet-bolt"],
"registryUrls": ["http://apt.puppet.com?suite=jammy&components=puppet-tools&binaryArch=amd64"]
},
{
"matchDatasources": ["deb"],
"matchPackageNames": ["pdk"],
"registryUrls": ["http://apt.puppet.com?suite=jammy&components=puppet-tools&binaryArch=amd64"]
}
],

"customManagers": [
{
"customType": "regex",
"fileMatch": ["build_versions.yaml"],
"matchStrings": ["#\\s*renovate:\\s*depName=(?<depName>.*?)\\s*puppetRelease=(?<puppetRelease>\\d+)\\s*\\n\\s*(?<key>\\w+_version):\\s*\"(?<currentValue>.*?)\""],
"registryUrlTemplate": "http://apt.puppet.com?suite=jammy&components=puppet{{puppetRelease}}&binaryArch=amd64",
"datasourceTemplate": "deb"
}
]
}

0 comments on commit baa6988

Please sign in to comment.