Managing Buildkite Agent Images with Renovate

Featured image for sharing metadata for article

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"
    }
  ]
}

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0.

#blogumentation #renovate #buildkite.

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.