From d50a4f25b9c161804c399428450767f37dfb0c50 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 27 Nov 2025 10:43:12 +0100 Subject: [PATCH] deprecate install input Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/ci.yml | 16 ---------------- README.md | 10 +++++++++- action.yml | 11 ++++++----- 3 files changed, 15 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4bdadf..2ae55e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,22 +115,6 @@ jobs: context: . platforms: linux/amd64,linux/arm64,linux/ppc64le - install: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v6 - - - name: Set up Docker Buildx - uses: ./ - with: - install: true - - - name: Check cmd - run: | - docker build --help - use: runs-on: ubuntu-latest strategy: diff --git a/README.md b/README.md index 0f212cb..d96817b 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ The following inputs can be used as `step.with` keys: | `buildkitd-flags` | String | | [BuildKit daemon flags](https://docs.docker.com/engine/reference/commandline/buildx_create/#buildkitd-flags) | | `buildkitd-config` \* | String | | [BuildKit daemon config file](https://docs.docker.com/engine/reference/commandline/buildx_create/#config) | | `buildkitd-config-inline` \* | String | | Same as `buildkitd-config` but inline | -| `install` | Bool | `false` | Sets up `docker build` command as an alias to `docker buildx` | +| `install` \* | Bool | `false` | Sets up `docker build` command as an alias to `docker buildx` | | `use` | Bool | `true` | Switch to this builder instance | | `endpoint` | String | | [Optional address for docker socket](https://docs.docker.com/engine/reference/commandline/buildx_create/#description) or context from `docker context ls` | | `platforms` | List/CSV | | Fixed [platforms](https://docs.docker.com/engine/reference/commandline/buildx_create/#platform) for current node. If not empty, values take priority over the detected ones | @@ -111,6 +111,14 @@ The following inputs can be used as `step.with` keys: > [!NOTE] > `buildkitd-config` and `buildkitd-config-inline` are mutually exclusive. +> [!NOTE] +> `install` input is deprecated and will be removed in a future release. This +> input is not necessary when building with our actions like +> `docker/build-push-action` or `docker/bake-action`. If you are still building +> with the `docker build` command then you can set the `BUILDX_BUILDER` +> environment variable, or you can just directly invoke the +> `docker buildx build` command: https://github.com/docker/setup-buildx-action/pull/455 + ### outputs The following outputs are available: diff --git a/action.yml b/action.yml index 9d99f95..b1b3ec2 100644 --- a/action.yml +++ b/action.yml @@ -26,10 +26,6 @@ inputs: buildkitd-config-inline: description: 'Inline BuildKit daemon config' required: false - install: - description: 'Sets up docker build command as an alias to docker buildx build' - default: 'false' - required: false use: description: 'Switch to this builder instance' default: 'true' @@ -58,7 +54,7 @@ inputs: description: 'Cleanup temp files and remove builder at the end of a job' default: 'true' required: false - # TODO: remove deprecated config and config-inline inputs + # TODO: remove deprecated config, config-inline and install inputs config: description: 'BuildKit daemon config file' deprecationMessage: 'Use buildkitd-config instead' @@ -67,6 +63,11 @@ inputs: description: 'Inline BuildKit daemon config' deprecationMessage: 'Use buildkitd-config-inline instead' required: false + install: + description: 'Sets up docker build command as an alias to docker buildx build' + deprecationMessage: '"docker buildx install" command is deprecated and will be removed in a future release, use BUILDX_BUILDER environment variable instead' + default: 'false' + required: false outputs: name: