GitHub Action to install QEMU static binaries
Go to file
Chocobo1 084b720a90
Trim off spaces in platform string
This allows users to specify platform in a more humane way, for example:
```yaml
env:
  # equals to `linux/amd64, linux/arm/v6`
  platforms: >
    linux/amd64,
    linux/arm/v6

- uses: docker/setup-qemu-action@v2
  with:
    platforms: ${{ env.PLATFORMS }}
```

Signed-off-by: Chocobo1 <Chocobo1@users.noreply.github.com>
2022-11-25 20:16:03 +08:00
.github Bump all Docker actions to latest major 2022-05-05 19:45:06 +02:00
dist Trim off spaces in platform string 2022-11-25 20:16:03 +08:00
src Trim off spaces in platform string 2022-11-25 20:16:03 +08:00
.dockerignore Enhance workflow 2021-04-02 11:47:56 +02:00
.editorconfig Initial commit (docker/build-push-action#87) 2020-08-18 18:19:47 +02:00
.eslintrc.json chore: update dev dependencies and workflow 2022-03-22 20:15:50 +01:00
.gitattributes Initial commit (docker/build-push-action#87) 2020-08-18 18:19:47 +02:00
.gitignore Initial commit (docker/build-push-action#87) 2020-08-18 18:19:47 +02:00
.prettierrc.json Initial commit (docker/build-push-action#87) 2020-08-18 18:19:47 +02:00
action.yml Node 16 as default runtime 2022-03-22 20:21:18 +01:00
dev.Dockerfile Node 16 as default runtime 2022-03-22 20:21:18 +01:00
docker-bake.hcl chore: update dev dependencies and workflow 2022-03-22 20:15:50 +01:00
LICENSE Initial commit (docker/build-push-action#87) 2020-08-18 18:19:47 +02:00
package.json Bump @actions/core from 1.9.1 to 1.10.0 2022-09-30 06:06:29 +00:00
README.md Use context for inputs 2022-10-08 18:40:34 +02:00
tsconfig.json chore: update dev dependencies and workflow 2022-03-22 20:15:50 +01:00
yarn.lock Bump @actions/core from 1.9.1 to 1.10.0 2022-09-30 06:06:29 +00:00

GitHub release GitHub marketplace CI workflow

About

GitHub Action to install QEMU static binaries.

Screenshot


Usage

name: ci

on:
  push:

jobs:
  qemu:
    runs-on: ubuntu-latest
    steps:
      -
        name: Set up QEMU
        uses: docker/setup-qemu-action@v2

Customizing

inputs

Following inputs can be used as step.with keys

Name Type Description
image String QEMU static binaries Docker image (default tonistiigi/binfmt:latest)
platforms String Platforms to install (e.g. arm64,riscv64,arm ; default all)

outputs

Following outputs are available

Name Type Description
platforms String Available platforms (comma separated)

Contributing

Want to contribute? Awesome! You can find information about contributing to this project in the CONTRIBUTING.md