mirror of
https://gitee.com/actions-mirror/docker-setup-buildx-action.git
synced 2024-11-27 07:10:42 +08:00
Merge pull request #189 from docker/version-pinning-docs
docs: add version pinning information to the README
This commit is contained in:
commit
7932f6210d
28
README.md
28
README.md
@ -20,6 +20,7 @@ ___
|
|||||||
|
|
||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
* [Configuring your builder](#configuring-your-builder)
|
* [Configuring your builder](#configuring-your-builder)
|
||||||
|
* [Version pinning](#version-pinning)
|
||||||
* [Customizing](#customizing)
|
* [Customizing](#customizing)
|
||||||
* [inputs](#inputs)
|
* [inputs](#inputs)
|
||||||
* [outputs](#outputs)
|
* [outputs](#outputs)
|
||||||
@ -58,6 +59,33 @@ jobs:
|
|||||||
|
|
||||||
See https://docs.docker.com/build/ci/github-actions/configure-builder/
|
See https://docs.docker.com/build/ci/github-actions/configure-builder/
|
||||||
|
|
||||||
|
## Version pinning
|
||||||
|
|
||||||
|
This action builds images using [Buildx](https://github.com/docker/buildx) and
|
||||||
|
[BuildKit](https://github.com/moby/buildkit). By default, the action will
|
||||||
|
attempt to use the latest version of Buildx available on the GitHub Runner
|
||||||
|
(the build client) and the latest release of BuildKit (the build server).
|
||||||
|
|
||||||
|
To pin to a specific version of Buildx, use the `version` input. For example,
|
||||||
|
to pin to Buildx v0.10.0:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
version: v0.10.0
|
||||||
|
```
|
||||||
|
|
||||||
|
To pin to a specific version of BuildKit, use the `image` option in the
|
||||||
|
`driver-opts` input. For example, to pin to BuildKit v0.11.0:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver-opts: image=moby/buildkit:v0.11.0
|
||||||
|
```
|
||||||
|
|
||||||
## Customizing
|
## Customizing
|
||||||
|
|
||||||
### inputs
|
### inputs
|
||||||
|
Loading…
Reference in New Issue
Block a user