もう不要)aqua-installer script内のaquaバージョンをRenovateで更新する
aqua-renovate-config使っとけば、自前でrenovate.jsonに設定しなくても実現できるようになった(1.3.0以降)
https://github.com/aquaproj/aqua-renovate-config/releases/tag/1.3.0
/icons/hr.icon
https://github.com/aquaproj/aqua-installer#shell-script
v1.21.0のところをRenovateで自動更新したい
code:bash
$ curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v1.1.2/aqua-installer | bash -s -- -v v1.21.0
(aqua-installerのバージョン(v1.1.2のところ)はhttps://github.com/aquaproj/aqua-renovate-config#installer-script-preset でRenovateによって自動更新できる)
regexManagersを設定する
https://docs.renovatebot.com/configuration-options/#regexmanagers
code:renovate.json
{
"regexManagers": [
{
"fileMatch": [
"templates/aqua-installer.gitlab-ci.yml"
],
"matchStrings": [
"aqua-installer \\| bash -s -- -v (?<currentValue>.*)\n"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "aquaproj/aqua"
}
]
}
bash -s -- -v v1.21.0 -i bin/aquaのようにバージョン番号の後ろにもコマンドが続いている場合はmatchStringsを調整する
Go版aqua-installerを使ってる場合も似たような設定でいけるはず
go run github.com/aquaproj/aqua-installer@latest --aqua-version v1.21.0
GitHub Actionsのaqua_versionであればRenovateのconfigを自分で書かなくてもプリセットで自動更新できる
https://github.com/aquaproj/aqua-renovate-config#default-preset
aquaが更新されたPR
https://github.com/mikutas/dotfiles/pull/39
#Renovate #aqua