mirror of
https://github.com/docker/setup-buildx-action.git
synced 2024-11-24 20:38:52 +00:00
Add install by default example
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
2b35b6f493
commit
6c5f59b307
1 changed files with 33 additions and 2 deletions
35
README.md
35
README.md
|
@ -8,8 +8,10 @@
|
||||||
|
|
||||||
GitHub Action to set up Docker [Buildx](https://github.com/docker/buildx).
|
GitHub Action to set up Docker [Buildx](https://github.com/docker/buildx).
|
||||||
|
|
||||||
> :bulb: See also our [build-push](https://github.com/docker/build-push-action)
|
> :bulb: See also:
|
||||||
> and [setup-qemu](https://github.com/docker/setup-qemu-action) actions
|
> * [login](https://github.com/docker/login-action) action
|
||||||
|
> * [setup-qemu](https://github.com/docker/setup-qemu-action) action
|
||||||
|
> * [build-push](https://github.com/docker/build-push-action) action
|
||||||
|
|
||||||
![Screenshot](.github/setup-buildx-action.png)
|
![Screenshot](.github/setup-buildx-action.png)
|
||||||
|
|
||||||
|
@ -18,6 +20,7 @@ ___
|
||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
* [Quick start](#quick-start)
|
* [Quick start](#quick-start)
|
||||||
* [With QEMU](#with-qemu)
|
* [With QEMU](#with-qemu)
|
||||||
|
* [Install by default](#install-by-default)
|
||||||
* [Customizing](#customizing)
|
* [Customizing](#customizing)
|
||||||
* [inputs](#inputs)
|
* [inputs](#inputs)
|
||||||
* [outputs](#outputs)
|
* [outputs](#outputs)
|
||||||
|
@ -89,6 +92,34 @@ jobs:
|
||||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Install by default
|
||||||
|
|
||||||
|
Implemented with https://github.com/docker/buildx#setting-buildx-as-default-builder-in-docker-1903
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
buildx:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
uses: docker/setup-buildx-action@master
|
||||||
|
id: buildx
|
||||||
|
with:
|
||||||
|
install: true
|
||||||
|
-
|
||||||
|
name: Build
|
||||||
|
run: |
|
||||||
|
docker build . # will run buildx
|
||||||
|
```
|
||||||
|
|
||||||
## Customizing
|
## Customizing
|
||||||
|
|
||||||
### inputs
|
### inputs
|
||||||
|
|
Loading…
Reference in a new issue