generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from cybozu-go/add-renovate-workflow
Add renovate workflow
- Loading branch information
Showing
5 changed files
with
127 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Renovate | ||
on: | ||
schedule: | ||
- cron: '0 10 * * 1' | ||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"username": "renovate[bot]", | ||
"gitAuthor": "Renovate Bot <[email protected]>", | ||
"platform": "github", | ||
"onboarding": false, | ||
"repositories": [ | ||
"cybozu-go/accurate" | ||
], | ||
"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" | ||
] | ||
}, | ||
{ | ||
"description": "Separate minor and patch updates for kubectl", | ||
"matchPackageNames": [ | ||
"kubernetes/kubectl" | ||
], | ||
"separateMinorPatch": true | ||
}, | ||
{ | ||
"description": "Disable major and minor update for kubectl", | ||
"enabled": false, | ||
"matchPackageNames": [ | ||
"kubernetes/kubectl" | ||
], | ||
"matchUpdateTypes": [ | ||
"major", | ||
"minor" | ||
] | ||
}, | ||
{ | ||
"description": "Separate minor and patch update for Kubernetes", | ||
"matchPackageNames": [ | ||
"kindest/node" | ||
], | ||
"separateMinorPatch": true | ||
}, | ||
{ | ||
"description": "Disable major and minor update for Kubernetes", | ||
"enabled": false, | ||
"matchPackageNames": [ | ||
"kindest/node" | ||
], | ||
"matchUpdateTypes": [ | ||
"major", | ||
"minor" | ||
] | ||
} | ||
], | ||
"postUpdateOptions": [ | ||
"gomodTidy" | ||
], | ||
"regexManagers": [ | ||
{ | ||
"datasourceTemplate": "docker", | ||
"depNameTemplate": "kindest/node", | ||
"fileMatch": [ | ||
"^\\.github\\/workflows\\/.+\\.ya?ml$" | ||
], | ||
"matchStrings": [ | ||
"- (?<currentValue>.+?) # renovate: kindest\\/node" | ||
] | ||
}, | ||
{ | ||
"datasourceTemplate": "docker", | ||
"depNameTemplate": "kindest/node", | ||
"fileMatch": [ | ||
"^e2e\\/Makefile$" | ||
], | ||
"matchStrings": [ | ||
"KUBERNETES_VERSION := (?<currentValue>.*?) # renovate: kindest\\/node" | ||
] | ||
} | ||
] | ||
} |