-
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.
feat added lint.yaml and updated renovate and pre-commit
- Loading branch information
1 parent
10af77b
commit 0bf21b1
Showing
3 changed files
with
55 additions
and
121 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,35 @@ | ||
yaml-files: | ||
- '**/*.y*ml' | ||
- '.yamllint' | ||
|
||
ignore: | ||
- '**/chart/templates**' | ||
|
||
rules: | ||
anchors: enable | ||
braces: enable | ||
brackets: enable | ||
colons: enable | ||
commas: enable | ||
comments: | ||
level: warning | ||
comments-indentation: | ||
level: warning | ||
document-end: disable | ||
document-start: | ||
level: warning | ||
empty-lines: enable | ||
empty-values: disable | ||
float-values: disable | ||
hyphens: enable | ||
indentation: enable | ||
key-duplicates: enable | ||
key-ordering: disable | ||
line-length: disable | ||
new-line-at-end-of-file: enable | ||
new-lines: enable | ||
octal-values: disable | ||
quoted-strings: disable | ||
trailing-spaces: enable | ||
truthy: | ||
level: warning |
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,129 +1,29 @@ | ||
{ | ||
"enabled": true, | ||
"forkProcessing": "enabled", | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
":dependencyDashboard", | ||
"github>defenseunicorns/uds-common//config/renovate.json5", | ||
":semanticCommits", | ||
":semanticPrefixFixDepsChoreOthers", | ||
"config:base", | ||
"group:all", | ||
"replacements:all", | ||
"workarounds:all" | ||
], | ||
"timezone": "America/New_York", | ||
"rebaseStalePrs": true, | ||
"schedule": ["after 7am and before 9am every weekday"], | ||
"dependencyDashboard": true, | ||
"platform": "github", | ||
"onboarding": false, | ||
"requireConfig": false, | ||
"dependencyDashboardTitle": "Renovate Dashboard 🤖", | ||
"rebaseWhen": "conflicted", | ||
"commitBodyTable": true, | ||
"ignorePaths": ["archive/**"], | ||
"suppressNotifications": ["prIgnoreNotification"], | ||
"pre-commit": { | ||
"enabled": true | ||
}, | ||
"helm-values": { | ||
"fileMatch": ["./.+\\.yaml$"] | ||
}, | ||
"kubernetes": { | ||
"fileMatch": ["\\.yaml$"], | ||
"ignorePaths": [ | ||
"ansible", | ||
"scripts", | ||
".github" | ||
] | ||
}, | ||
"hostRules": [ | ||
{ | ||
"matchHost": "registry1.dso.mil", | ||
"hostType": "docker", | ||
"description": "Encrypted creds for registry1, scoped to this Github org using: https://github.com/renovatebot/renovate/blob/main/docs/usage/configuration-options.md#encrypted", | ||
"encrypted": { | ||
"username": "wcFMA/xDdHCJBTolAQ//a+5GNAOsD/UOKnqJDdbPRr73EXRgyRdtMOIqDyjGZIKcdVo64StgUb1O37O5bazoyGeYkcISaWjInxRuoBOxqFhdo5cTUIJavjm2Sn75OWCDBUr2Q5/OSluQDbp7QO9g4+cHxcjtldlMswZg0RIoSX8rtAcNvJePvuWDKRHmUSDbWrNoAPaqOUvBIUF+BUR8o2UtKY4c986B9sqz1/ZiyL7vmenuoFi36MPpq123b6xra9/Q8Zb+AGZY6guhI0kmmSvLPwuNpU/W9ocpaUW1jOgJdYDowZqoTC27uozw1rCq38ybL94GMeG+pzWJd7LBVbfpDnU10j5UC5l5coxghh8dBYNzirsRbYW9KMV3CSeRNxOqfUuJ9AfWekCBWQMkueDtop+lzZhpvsPnXYTV6V0+TE+W5lg0wApcGUNM5XsEHV/gchSULZCWUTHpyZfkUoyc3dXax7K9LawrNLLpJg3Oz0c5Y4WXS1SqfY3U6n84Q95URZC+uRl5BqzBwQSQYbWsnon+g3My+GukdhH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FQ83M7sl3/fY+CBaHFEiT4j/bSBznmxL3TuAjMdIT7j0cNsOxnsHllgRHL1qG3S2ZmAQ0Ex4gIUUGn2VbZLyRogJspsjxx5ZYuuYVfhtSaTU" | ||
} | ||
} | ||
], | ||
"regexManagers": [ | ||
{ | ||
"fileMatch": [".*\\.ya?ml$"], | ||
"matchStrings": [ | ||
"# renovate: datasource=helm\\n .*- name: (?<depName>.*?)\\n *url: (?<registryUrl>.*?)\\n *version: (?<currentValue>.*)\\n" | ||
], | ||
"datasourceTemplate": "helm", | ||
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*)${{/if}}" | ||
}, | ||
{ | ||
"fileMatch": [".*\\.ya?ml$"], | ||
"matchStrings": [ | ||
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( extractVersion=(?<extractVersion>.*?))?( registryUrl=(?<registryUrl>.*?))?\\s.*?:\\s*['\"]?(?<currentValue>.*?)['\"]?\\s" | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}", | ||
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*)${{/if}}" | ||
}, | ||
{ | ||
"fileMatch": [".*\\.ya?ml$"], | ||
"matchStrings": [ | ||
"# renovate: zarf-uri datasource=github-tags depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?uri: ['\"]https:\\/\\/github.com\\/defenseunicorns\\/zarf\\/releases\\/download\\/(?<currentValue>.*)\\/zarf_.*_Linux_amd64['\"]", | ||
"# renovate: zarf-uri datasource=github-tags depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?uri: ['\"]https:\\/\\/github.com\\/defenseunicorns\\/zarf\\/releases\\/download\\/.*\\/zarf_(?<currentValue>.*)_Linux_amd64['\"]" | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}", | ||
"datasourceTemplate": "github-tags" | ||
}, | ||
{ | ||
"fileMatch": [".*\\.ya?ml$"], | ||
"matchStrings": [ | ||
"# renovate: repo-file depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\n.*\\/(?<currentValue>v.*?)\\/" | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}", | ||
"datasourceTemplate": "github-tags" | ||
}, | ||
{ | ||
"fileMatch": [".*\\/?zarf\\.ya?ml$"], | ||
"matchStrings": [ | ||
"-\\s+['\"]{0,1}(?<depName>[^:\\s]+):(?<currentValue>\\S+)['\"]{0,1}\\n" | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}", | ||
"datasourceTemplate": "docker", | ||
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*)${{/if}}" | ||
}, | ||
{ | ||
"fileMatch": ["^Makefile$"], | ||
"matchStrings": [ | ||
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( extractVersion=(?<extractVersion>.*?))?( registryUrl=(?<registryUrl>.*?))?\\s.*?=\\s*['\"]?(?<currentValue>.*?)['\"]?\\s" | ||
], | ||
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}", | ||
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{else}}^(?<version>.*)${{/if}}" | ||
}, | ||
"packageRules": [ | ||
{ | ||
"fileMatch": [".*\\/?zarf\\.ya?ml$"], | ||
"matchStrings": [ | ||
"# renovate: bb-chart\\n .*- name: .*?\\n *url: ['\"]{0,1}(?<registryUrl>https:\\/\\/.*?)\\/(?<depName>.*?)\\.git['\"]{0,1}\\n *version: ['\"]{0,1}(?<currentValue>.*?)['\"]{0,1}\\n" | ||
], | ||
"datasourceTemplate": "gitlab-tags" | ||
"groupName": "Artifactory Support Dependencies", | ||
"labels": ["support-deps"], | ||
"commitMessageTopic": "support-deps", | ||
"packagePatterns": ["*"] | ||
}, | ||
{ | ||
"fileMatch": ["^\\.github/workflows/commitlint\\.yaml$"], | ||
"matchStrings": [ | ||
"npm install --save-dev (?<depName>@?.*?)@(?<currentValue>.+)" | ||
], | ||
"datasourceTemplate": "npm" | ||
} | ||
], | ||
"packageRules": [ | ||
{ | ||
"matchManagers": ["terraform"], | ||
"matchDepTypes": ["module"], | ||
"matchDatasources": ["github-tags", "git-tags"], | ||
"versioning": "loose" | ||
"groupName": "Artifactory Package Dependencies", | ||
"labels": ["package-deps"], | ||
"commitMessageTopic": "package-deps", | ||
"matchDatasources": ["docker", "helm", "git-tags"] | ||
}, | ||
{ | ||
"matchPackagePatterns": ["big-bang/.*"], | ||
"matchDatasources": ["gitlab-tags"], | ||
"allowedVersions": "!/^v.*$/" | ||
"matchPackageNames": ["https://repo1.dso.mil/big-bang/product/packages/artifactory.git"], | ||
"allowedVersions": "/.+-bb.+/" | ||
} | ||
] | ||
} |