From 6c5f59b307b0eaba5e8d1c48093f6adea1c8ebf7 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 29 Aug 2020 17:50:15 +0200 Subject: [PATCH] Add install by default example Signed-off-by: CrazyMax --- README.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 33b29fd..981a2c4 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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) @@ -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