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 workflow #38

Merged
merged 1 commit into from
Jul 6, 2023
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
15 changes: 15 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Renovate
on:
schedule:
- cron: '0 0 * * 2'
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Self-hosted Renovate
uses: renovatebot/github-action@2a87d1192eaa0cac92b6566233afedf68fd3472a # renovate v38.1.8
with:
configurationFile: renovate.json
token: ${{ secrets.RENOVATE_TOKEN }}
3 changes: 2 additions & 1 deletion docs/maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ If Kubernetes or controller-runtime API has changed, please fix the relevant sou

## How to update dependencies

TBD.
Renovate will create PRs that update dependencies once a week.
However, Kubernetes is only updated with patched versions.
48 changes: 48 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"username": "renovate[bot]",
"gitAuthor": "Renovate Bot <bot@renovateapp.com>",
"platform": "github",
"onboarding": false,
"repositories": [
"cybozu-go/pod-security-admission"
],
"extends": [
"config:base",
"github>aquaproj/aqua-renovate-config#1.6.0",
":semanticCommitTypeAll(chore)",
":timezone(Asia/Tokyo)"
],
"ignorePresets": [":prHourlyLimit2"],
"labels": [
"dependencies"
],
"packageRules": [
{
"description": "Separate minor and patch updates for Kubernetes packages",
"matchDatasources": [
"go"
],
"matchPackagePatterns": [
"^k8s\\.io\\/.*"
],
"separateMinorPatch": true
},
{
"description": "Disable major updates for k8s.io/client-go",
"enabled": false,
"matchDatasources": [
"go"
],
"matchPackageNames": [
"k8s.io/client-go"
],
"matchUpdateTypes": [
"major"
]
}
],
"postUpdateOptions": [
"gomodTidy"
]
}