Skip to content

Commit

Permalink
Merge pull request #38 from cybozu-go/add-renovate-workflow
Browse files Browse the repository at this point in the history
Add renovate workflow
  • Loading branch information
zoetrope committed Jul 6, 2023
2 parents f5ff95b + 1ebecbb commit db8b5d6
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
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"
]
}

0 comments on commit db8b5d6

Please sign in to comment.