Skip to content

Commit

Permalink
Add renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 17, 2024
1 parent 0ea7b34 commit a3c927f
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ jobs:
gh workflow run goreleaser.yml --ref $TAG
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

3 changes: 1 addition & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand All @@ -30,4 +30,3 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

21 changes: 21 additions & 0 deletions .github/workflows/validate-renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: validate renovate.json5

on:
pull_request:

env:
LOG_LEVEL: debug

jobs:
renovate-config-validator:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 20

- run: npx -p renovate renovate-config-validator renovate.json5
67 changes: 67 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"extends": [
"config:best-practices",
":rebaseStalePrs",
"regexManagers:dockerfileVersions"
],
"packageRules": [
{
"matchPackagePatterns": [
"*"
],
"matchUpdateTypes": [
"minor",
"patch",
"digest"
],
"groupName": "all non-major dependencies",
"schedule": [
"after 10pm on Friday"
]
},
{
"matchManagers": [
"gomod"
],
"postUpdateOptions": [
"gomodTidy"
],
"groupName": "gomod updates"
},
{
"matchManagers": [
"dockerfile"
],
"groupName": "Dockerfile updates"
},
{
"matchManagers": [
"github-actions"
],
"groupName": "GitHub Actions updates",
"schedule": [
"after 10pm on Friday"
]
},
{
"matchPackagePatterns": [
"*"
],
"matchUpdateTypes": [
"major"
],
"groupName": "all major updates",
"schedule": [
"after 10pm on the first day of the month"
]
}
],
"labels": [
"dependencies"
],
"osvVulnerabilityAlerts": true,
"dependencyDashboardOSVVulnerabilitySummary": "unresolved",
"vulnerabilityAlerts": {
"enabled": true
}
}

0 comments on commit a3c927f

Please sign in to comment.