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

Renovate update reference #777

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ on:

jobs:
renovate:
permissions:
contents: read
issues: read
pull-requests: write
repository-projects: read
statuses: read
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -22,6 +16,8 @@ jobs:
uses: renovatebot/[email protected]
with:
configurationFile: renovate-config.json
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.PCCIBOT_PAT_REPO_PUBLIC_REPO }}
TheMeier marked this conversation as resolved.
Show resolved Hide resolved
renovate-image: ghcr.io/renovatebot/renovate
renovate-version: 37-full
env:
LOG_LEVEL: 'debug'
35 changes: 29 additions & 6 deletions renovate-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,51 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"onboarding": false,
"requireConfig": "optional",
"repositories": ["voxpupuli/puppet-prometheus"],
"extends": ["config:recommended"],
"enabledManagers": ["custom.regex"],
"repositories": [
"voxpupuli/puppet-prometheus"
],
"extends": [
"config:recommended"
],
"enabledManagers": [
"custom.regex"
],
"prHourlyLimit": 10,
"prConcurrentLimit": 20,
"branchConcurrentLimit": 30,
"customManagers": [
{
"customType": "regex",
"fileMatch": ["defaults.yaml"],
"fileMatch": [
"defaults.yaml"
],
"matchStrings": [
"# renovate: depName=(?<depName>[^\\s]+?)\\s+[a-z0-9:_]+?::version:\\s+['\"]?(?<currentValue>[\\w+\\.]*)"
],
"datasourceTemplate": "github-releases"
},
{
"customType": "regex",
"fileMatch": [".*_exporter.pp"],
"fileMatch": [
".*_exporter.pp"
],
"matchStrings": [
"# renovate: depName=(?<depName>[^\\s]+?)\\s+String\\[1\\]\\s+\\$version\\s+=\\s+['\"]?(?<currentValue>[\\w+\\.]*)"
],
"datasourceTemplate": "github-releases"
}

],
"postUpgradeTasks": {
"commands": [
"bundle install",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are github actions available to install the dependencies and setup ruby, can we use those as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is inside the renovate image, so i guess not

"bundle exec gem install rake",
"bundle exec rake strings:generate:reference"
],
"executionMode": "branch"
},
"allowedPostUpgradeCommands": [
"^bundle install$",
"^bundle exec gem install rake$",
"^bundle exec rake strings:generate:reference$"
]
}