Skip to content

Commit

Permalink
Add install by default example
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
CrazyMax committed Aug 29, 2020
1 parent 2b35b6f commit 6c5f59b
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@

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)
> and [setup-qemu](https://github.com/docker/setup-qemu-action) actions
> :bulb: See also:
> * [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)

Expand All @@ -18,6 +20,7 @@ ___
* [Usage](#usage)
* [Quick start](#quick-start)
* [With QEMU](#with-qemu)
* [Install by default](#install-by-default)
* [Customizing](#customizing)
* [inputs](#inputs)
* [outputs](#outputs)
Expand Down Expand Up @@ -89,6 +92,34 @@ jobs:
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
### inputs
Expand Down

0 comments on commit 6c5f59b

Please sign in to comment.