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

add renovate #5238

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
34 changes: 34 additions & 0 deletions .github/workflows/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"dependencyDashboard": true,
"onboarding": false,
"automerge": false,
"separateMinorPatch": true,
"platform": "github",
"extends": ["config:base"],
"labels": ["version_bump"],
"forkProcessing": "enabled",
"semanticCommits": "enabled",
"prConcurrentLimit": 20,
"prHourlyLimit": 20,
"dockerfile": {
"enabled": false
},
"customManagers": [
{
"customType": "regex",
"fileMatch": ["embedded-bins/Makefile.variables"],
"matchStrings": ["alpine_version\\s*=\\s*(?<currentValue>\\S+)"],
Copy link
Member

@twz123 twz123 Dec 16, 2024

Choose a reason for hiding this comment

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

Just remembering that we distinguish between the full Alpine version (x.y.z) and only the major/minor part (x.y), so I think we need to augment this?

"depNameTemplate": "alpine",
"versioningTemplate": "semver",
"datasourceTemplate": "endoflife-date",
"packageNameTemplate": "alpine"
}
],
"customDatasources": {
"endoflife-date": {
"defaultRegistryUrlTemplate": "https://endoflife.date/api/alpine.json",
"format": "json"
}
}
}
25 changes: 25 additions & 0 deletions .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Adding renovate workflow to dependencies version in
name: Renovate
on:
schedule:
- cron: '* */6 * * *' # Runs every 6 hours
workflow_dispatch:
push:
branches:
- main
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Self-hosted Renovate
uses: renovatebot/[email protected]
with:
token: ${{ secrets.GH_TOKEN }}
configurationFile: .github/workflows/renovate.json
env:
LOG_LEVEL: 'debug'
RENOVATE_AUTODISCOVER: 'false'
RENOVATE_REPOSITORIES: ${{ github.repository }}