Skip to content

Commit

Permalink
Merge pull request #91 from aquaproj/feat/update-kustomize
Browse files Browse the repository at this point in the history
feat: add a preset to update kustomize
  • Loading branch information
suzuki-shunsuke authored Jan 2, 2022
2 parents 66f8845 + 47f7bfa commit 9070735
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 6 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,21 @@ https://aquaproj.github.io/

## List of Presets

* [default](default.json): Update aqua.yaml and GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version` and [aquaproj/aqua-renovate-config](https://github.com/aquaproj/aqua-renovate-config)
* `base` and `action` presets are included
* [base](base.json): Update aqua.yaml
* [action](action.json): Update GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version`
* [file](file.json): Update aqua.yaml. `fileMatch` is parameterized
* [installer-script](installer-script.json): Update the shell script [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer). `fileMatch` is parameterized
* [default](default.json)
* aqua.yaml
* GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version`
* [aquaproj/aqua-renovate-config](https://github.com/aquaproj/aqua-renovate-config)
* [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize)
* [base](base.json)
* aqua.yaml
* [action](action.json)
* GitHub Actions [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer)'s `aqua_version`
* [file](file.json)
* aqua.yaml. `fileMatch` is parameterized
* [installer-script](installer-script.json)
* the shell script [aquaproj/aqua-installer](https://github.com/aquaproj/aqua-installer). `fileMatch` is parameterized
* [kubernetes-sigs-kustomize](kubernetes-sigs-kustomize.json)
* [kubernetes-sigs/kustomize](https://github.com/kubernetes-sigs/kustomize). `fileMatch` is parameterized

## How to use

Expand Down
10 changes: 10 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "aquaproj/aqua-renovate-config"
},
{
"fileMatch": ["\\.?aqua\\.ya?ml"],
"matchStrings": [
" +['\"]?version['\"]? *: +['\"]?kustomize/(?<currentValue>[^'\" \\n]+)['\"]?",
" +['\"]?name['\"]? *: +['\"]?kubernetes-sigs/kustomize@kustomize/(?<currentValue>[^'\" \\n]+)['\"]?"
],
"extractVersionTemplate": "^kustomize/(?<version>.*)$",
"datasourceTemplate": "github-releases",
"depNameTemplate": "kubernetes-sigs/kustomize"
}
]
}
15 changes: 15 additions & 0 deletions kubernetes-sigs-kustomize.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"regexManagers": [
{
"fileMatch": ["{{arg0}}"],
"matchStrings": [
" +['\"]?version['\"]? *: +['\"]?kustomize/(?<currentValue>[^'\" \\n]+)['\"]?",
" +['\"]?name['\"]? *: +['\"]?kubernetes-sigs/kustomize@kustomize/(?<currentValue>[^'\" \\n]+)['\"]?"
],
"extractVersionTemplate": "^kustomize/(?<version>.*)$",
"datasourceTemplate": "github-releases",
"depNameTemplate": "kubernetes-sigs/kustomize"
}
]
}

0 comments on commit 9070735

Please sign in to comment.