-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'openhpi-cloud/main'
- Loading branch information
Showing
10 changed files
with
111 additions
and
9 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: test | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
renovate-config-validator: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/renovatebot/renovate | ||
options: --user root | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: ls -lah | ||
- run: renovate-config-validator --strict *.json5 |
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 |
---|---|---|
@@ -1 +1,25 @@ | ||
# Shared Renovate Preset | ||
# Shared Renovate Presets | ||
|
||
Shared configuration preset for @renovatebot. | ||
|
||
```json5 title="renovate.json5" | ||
{ | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
extends: [ | ||
"local>openHPI/renovate-config" | ||
] | ||
} | ||
``` | ||
|
||
## Validate preset configs locally | ||
|
||
```console | ||
$ docker run -it --rm -v .:/usr/src/app --entrypoint renovate-config-validator renovate/renovate --strict *.json5 | ||
INFO: Validating default.json5 | ||
INFO: Validating go.json5 | ||
INFO: Validating node.json5 | ||
INFO: Validating ruby.json5 | ||
INFO: Validating terraform.json5 | ||
INFO: Validating tool-version.json5 | ||
INFO: Config validated successfully | ||
``` |
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
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,6 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"local>openhpi-cloud/renovate-config" | ||
] | ||
} |
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,18 @@ | ||
{ | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
packageRules: [ | ||
// Group updates for Terraform binaries and hashicorp/terraform | ||
// container images together. | ||
{ | ||
groupName: "terraform", | ||
matchPackageNames: ["hashicorp/terraform", "terraform"], | ||
}, | ||
// Do not automerge major _and_ minor versions, since minor updates | ||
// can contain breaking changes for Terraform. | ||
{ | ||
matchPackageNames: ["hashicorp/terraform", "terraform"], | ||
matchUpdateTypes: ["major", "minor"], | ||
automerge: false, | ||
}, | ||
], | ||
} |
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,22 @@ | ||
{ | ||
$schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
packageRules: [ | ||
// Strip the "v" prefix from usual GitHub tags/release since asdf | ||
// plugins mostly use raw versions only. | ||
{ | ||
matchManagers: ["custom.regex"], | ||
matchFileNames: ["**/.tool-versions"], | ||
extractVersion: "^v?(?<version>.*)$", | ||
}, | ||
], | ||
customManagers: [ | ||
{ | ||
customType: "regex", | ||
fileMatch: [".tool-versions$"], | ||
matchStrings: [ | ||
"#\\s*renovate:\\s+datasource=(?<datasource>.*?)\\s+depName=(?<depName>.*?)(\\s+versioning=(?<versioning>.*?))?\\n\\w+\\s+(?<currentValue>.*)", | ||
], | ||
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}", | ||
}, | ||
], | ||
} |