From 48967bb431d4771a1d85f7178e72984cd36f4019 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 20 Feb 2025 13:17:57 +0100 Subject: [PATCH 1/3] build: buildx 0.21.0 release notes Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- content/manuals/build/release-notes.md | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/content/manuals/build/release-notes.md b/content/manuals/build/release-notes.md index a086215565f7..afee9883d585 100644 --- a/content/manuals/build/release-notes.md +++ b/content/manuals/build/release-notes.md @@ -10,6 +10,34 @@ toc_max: 2 This page contains information about the new features, improvements, and bug fixes in [Docker Buildx](https://github.com/docker/buildx). +## 0.21.0 + +{{< release-date date="2025-02-19" >}} + +The full release note for this release is available +[on GitHub](https://github.com/docker/buildx/releases/tag/v0.21.0). + +### New + +- New command `buildx history trace` allows inspecting traces of a build in a Jaeger UI-based viewer and comparing one trace with another. [docker/buildx#2904](https://github.com/docker/buildx/pull/2904) + +### Enhancements + +- The history inspection command `buildx history inspect` now supports custom formatting with `--format` flag and JSON formatting for machine-readable output. [docker/buildx#2964](https://github.com/docker/buildx/pull/2964) +- Support for CDI device entitlement in build and bake. [docker/buildx#2994](https://github.com/docker/buildx/pull/2994) +- Supported CDI devices are now shown in the builder inspection. [docker/buildx#2983](https://github.com/docker/buildx/pull/2983) +- When using [GitHub Cache backend `type=gha`](cache/backends/gha.md), the URL for the Version 2 or API is now read from the environment and sent to BuildKit. Version 2 backend requires BuildKit v0.20.0 or later. [docker/buildx#2983](https://github.com/docker/buildx/pull/2983), [docker/buildx#3001](https://github.com/docker/buildx/pull/3001) + +### Bug fixes + +- Avoid unnecessary warnings and prompts when using `--progress=rawjson`. [docker/buildx#2957](https://github.com/docker/buildx/pull/2957) +- Fix regression with debug shell sometimes not working correctly on `--on=error`. [docker/buildx#2958](https://github.com/docker/buildx/pull/2958) +- Fix possible panic errors when using an unknown variable in the Bake definition. [docker/buildx#2960](https://github.com/docker/buildx/pull/2960) +- Fix invalid duplicate output on JSON format formatting of `buildx ls` command. [docker/buildx#2970](https://github.com/docker/buildx/pull/2970) +- Fix bake handling cache imports with CSV string containing multiple registry references. [docker/buildx#2944](https://github.com/docker/buildx/pull/2944) +- Fix issue where error from pulling BuildKit image could be ignored. [docker/buildx#2988](https://github.com/docker/buildx/pull/2988) +- Fix race on pausing progress on debug shell. [docker/buildx#3003](https://github.com/docker/buildx/pull/3003) + ## 0.20.1 {{< release-date date="2025-01-23" >}} From f213371541a58b8a4bcb2dc950c3b2b7449bdbea Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 20 Feb 2025 13:18:17 +0100 Subject: [PATCH 2/3] build: add url_v2 gha cache backend attribute Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- content/manuals/build/cache/backends/gha.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/content/manuals/build/cache/backends/gha.md b/content/manuals/build/cache/backends/gha.md index e5de3accdae5..9b3f5c1040d0 100644 --- a/content/manuals/build/cache/backends/gha.md +++ b/content/manuals/build/cache/backends/gha.md @@ -31,8 +31,9 @@ The following table describes the available CSV parameters that you can pass to `--cache-to` and `--cache-from`. | Name | Option | Type | Default | Description | -| -------------- | ----------------------- | ----------- | ------------------------ | -------------------------------------------------------------------- | +|----------------|-------------------------|-------------|--------------------------|----------------------------------------------------------------------| | `url` | `cache-to`,`cache-from` | String | `$ACTIONS_CACHE_URL` | Cache server URL, see [authentication][1]. | +| `url_v2` | `cache-to`,`cache-from` | String | `$ACTIONS_CACHE_URL` | Cache v2 server URL, see [authentication][1]. | | `token` | `cache-to`,`cache-from` | String | `$ACTIONS_RUNTIME_TOKEN` | Access token, see [authentication][1]. | | `scope` | `cache-to`,`cache-from` | String | `buildkit` | Which scope cache object belongs to, see [scope][2] | | `mode` | `cache-to` | `min`,`max` | `min` | Cache layers to export, see [cache mode][3]. | @@ -47,10 +48,10 @@ The following table describes the available CSV parameters that you can pass to ## Authentication -If the `url` or `token` parameters are left unspecified, the `gha` cache backend -will fall back to using environment variables. If you invoke the `docker buildx` -command manually from an inline step, then the variables must be manually -exposed. Consider using the +If the `url`, `url_v2` or `token` parameters are left unspecified, the `gha` +cache backend will fall back to using environment variables. If you invoke the +`docker buildx` command manually from an inline step, then the variables must +be manually exposed. Consider using the [`crazy-max/ghaction-github-runtime`](https://github.com/crazy-max/ghaction-github-runtime), GitHub Action as a helper for exposing the variables. From 18b5a090d836cfd6a8e58dac5ec3cafa1806ec76 Mon Sep 17 00:00:00 2001 From: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Date: Thu, 20 Feb 2025 12:36:52 +0000 Subject: [PATCH 3/3] Update content/manuals/build/release-notes.md --- content/manuals/build/release-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/manuals/build/release-notes.md b/content/manuals/build/release-notes.md index afee9883d585..978cf201ca49 100644 --- a/content/manuals/build/release-notes.md +++ b/content/manuals/build/release-notes.md @@ -19,7 +19,7 @@ The full release note for this release is available ### New -- New command `buildx history trace` allows inspecting traces of a build in a Jaeger UI-based viewer and comparing one trace with another. [docker/buildx#2904](https://github.com/docker/buildx/pull/2904) +- New command `buildx history trace` lets you inspect traces of a build in a Jaeger UI-based viewer and compare one trace with another. [docker/buildx#2904](https://github.com/docker/buildx/pull/2904) ### Enhancements