mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-12-11 06:55:21 +00:00
Merge d50a4f25b9c161804c399428450767f37dfb0c50 into 65d18f8f8a05aab1b2d761032bec9cd5578caadb
This commit is contained in:
commit
221a665702
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -115,22 +115,6 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64,linux/arm64,linux/ppc64le
|
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:
|
use:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
10
README.md
10
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-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` \* | 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 |
|
| `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 |
|
| `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` |
|
| `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 |
|
| `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]
|
> [!NOTE]
|
||||||
> `buildkitd-config` and `buildkitd-config-inline` are mutually exclusive.
|
> `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
|
### outputs
|
||||||
|
|
||||||
The following outputs are available:
|
The following outputs are available:
|
||||||
|
|||||||
11
action.yml
11
action.yml
@ -26,10 +26,6 @@ inputs:
|
|||||||
buildkitd-config-inline:
|
buildkitd-config-inline:
|
||||||
description: 'Inline BuildKit daemon config'
|
description: 'Inline BuildKit daemon config'
|
||||||
required: false
|
required: false
|
||||||
install:
|
|
||||||
description: 'Sets up docker build command as an alias to docker buildx build'
|
|
||||||
default: 'false'
|
|
||||||
required: false
|
|
||||||
use:
|
use:
|
||||||
description: 'Switch to this builder instance'
|
description: 'Switch to this builder instance'
|
||||||
default: 'true'
|
default: 'true'
|
||||||
@ -58,7 +54,7 @@ inputs:
|
|||||||
description: 'Cleanup temp files and remove builder at the end of a job'
|
description: 'Cleanup temp files and remove builder at the end of a job'
|
||||||
default: 'true'
|
default: 'true'
|
||||||
required: false
|
required: false
|
||||||
# TODO: remove deprecated config and config-inline inputs
|
# TODO: remove deprecated config, config-inline and install inputs
|
||||||
config:
|
config:
|
||||||
description: 'BuildKit daemon config file'
|
description: 'BuildKit daemon config file'
|
||||||
deprecationMessage: 'Use buildkitd-config instead'
|
deprecationMessage: 'Use buildkitd-config instead'
|
||||||
@ -67,6 +63,11 @@ inputs:
|
|||||||
description: 'Inline BuildKit daemon config'
|
description: 'Inline BuildKit daemon config'
|
||||||
deprecationMessage: 'Use buildkitd-config-inline instead'
|
deprecationMessage: 'Use buildkitd-config-inline instead'
|
||||||
required: false
|
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:
|
outputs:
|
||||||
name:
|
name:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user