From f443d57e898ff88f0ad75a28353a78d0b043fb5e Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 7 Aug 2020 11:34:40 +0200 Subject: [PATCH] Example with QEMU Signed-off-by: CrazyMax --- setup-buildx/README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/setup-buildx/README.md b/setup-buildx/README.md index f76dc1d..0e64d00 100644 --- a/setup-buildx/README.md +++ b/setup-buildx/README.md @@ -6,6 +6,7 @@ ___ * [Usage](#usage) * [Quick start](#quick-start) + * [With QEMU](#with-qemu) * [Customizing](#customizing) * [inputs](#inputs) * [outputs](#outputs) @@ -44,6 +45,43 @@ jobs: run: echo ${{ steps.buildx.outputs.platforms }} ``` +### With QEMU + +If you want support for more platforms you can use our [setup-qemu](../setup-qemu) action: + +```yaml +name: ci + +on: + pull_request: + branches: master + push: + branches: master + tags: + +jobs: + buildx: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Set up QEMU + uses: docker/action/setup-qemu@v2 + with: + qemu-version: latest + - + name: Set up Docker Buildx + id: buildx + uses: docker/action/setup-buildx@v2 + with: + buildx-version: latest + - + name: Available platforms + run: echo ${{ steps.buildx.outputs.platforms }} +``` + ## Customizing ### inputs