diff --git a/README.md b/README.md index 0e24f9e..0d2d828 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ https://aquaproj.github.io/ * 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) + * [golang/go](https://github.com/golang/go) * [base](base.json) * aqua.yaml * [action](action.json) @@ -30,6 +31,8 @@ https://aquaproj.github.io/ * 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 +* [golang-go](golang-go.json) + * [golang/go](https://github.com/golang/go). `fileMatch` is parameterized ## How to use diff --git a/default.json b/default.json index 7ea54fc..5d23677 100644 --- a/default.json +++ b/default.json @@ -41,6 +41,16 @@ "extractVersionTemplate": "^kustomize/(?.*)$", "datasourceTemplate": "github-releases", "depNameTemplate": "kubernetes-sigs/kustomize" + }, + { + "fileMatch": ["\\.?aqua\\.ya?ml"], + "matchStrings": [ + " +['\"]?version['\"]? *: +['\"]?(?[^'\" \\n]+)['\"]? +# renovate: depName=golang/go[ \\n]", + " +['\"]?name['\"]? *: +['\"]?golang/go@(?[^'\" \\n]+)['\"]?" + ], + "extractVersionTemplate": "^go(?.*)$", + "datasourceTemplate": "github-tags", + "depNameTemplate": "golang/go" } ] } diff --git a/golang-go.json b/golang-go.json new file mode 100644 index 0000000..639f612 --- /dev/null +++ b/golang-go.json @@ -0,0 +1,14 @@ +{ + "regexManagers": [ + { + "fileMatch": ["{{arg0}}"], + "matchStrings": [ + " +['\"]?version['\"]? *: +['\"]?(?[^'\" \\n]+)['\"]? +# renovate: depName=golang/go[ \\n]", + " +['\"]?name['\"]? *: +['\"]?golang/go@(?[^'\" \\n]+)['\"]?" + ], + "extractVersionTemplate": "^go(?.*)$", + "datasourceTemplate": "github-tags", + "depNameTemplate": "golang/go" + } + ] +}