Managing Buildkite Agent Images with Renovate
If you're using Buildkite for your builds, you may end up defining Docker images that you want your agents to run on, for instance:
agents:
image: "golang:1.19"
As with everything, I'm always striving to get Renovate to make it easier to keep these versions updated.
As mentioned on GitHub, Renovate doesn't yet support this in the Buildkite manager, so in the meantime we can use the regex manager:
{
"regexManagers": [
{
"fileMatch": [
// default filepaths from the Buildkite manager
"buildkite\\.ya?ml",
"\\.buildkite/.+\\.ya?ml$",
// additional configuration for nested directories
"\\.buildkite/.+/.+\\.ya?ml$"
],
"matchStrings": [
"image:\\s*\"?(?<depName>[^\\s:@\"]+)(?::(?<currentValue>[-a-zA-Z0-9.]+))?(?:@(?<currentDigest>sha256:[a-zA-Z0-9]+))?\"?"
],
"datasourceTemplate": "docker"
}
]
}