mirror of
https://github.com/docker/setup-qemu-action.git
synced 2026-05-10 20:42:14 +00:00
Compare commits
19 Commits
f908d51aa1
...
e06fb94911
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e06fb94911 | ||
|
|
76c0984808 | ||
|
|
de93a28d33 | ||
|
|
f4e8deed0c | ||
|
|
5a1a5cc4f8 | ||
|
|
6412e4f975 | ||
|
|
3329a8ce3d | ||
|
|
cf45d1535a | ||
|
|
7b4ca36676 | ||
|
|
9d536b88bb | ||
|
|
6804d31319 | ||
|
|
f03c104308 | ||
|
|
6632d370ea | ||
|
|
ff0bafa2b5 | ||
|
|
b99055d793 | ||
|
|
f80e0ace51 | ||
|
|
a4bc6cde7e | ||
|
|
83ebb81e64 | ||
|
|
9586bd4603 |
38
README.md
38
README.md
@ -13,6 +13,7 @@ GitHub Action to install [QEMU](https://github.com/qemu/qemu) static binaries.
|
|||||||
___
|
___
|
||||||
|
|
||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
|
* [Multi-platform build example](#multi-platform-build-example)
|
||||||
* [Customizing](#customizing)
|
* [Customizing](#customizing)
|
||||||
* [inputs](#inputs)
|
* [inputs](#inputs)
|
||||||
* [outputs](#outputs)
|
* [outputs](#outputs)
|
||||||
@ -48,6 +49,43 @@ jobs:
|
|||||||
> uses: docker/setup-buildx-action@v4
|
> uses: docker/setup-buildx-action@v4
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
### Multi-platform build example
|
||||||
|
|
||||||
|
The following example shows how to use this action to build and push a multi-platform image for `linux/amd64` and `linux/arm64` using [Buildx](https://github.com/docker/buildx):
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v4
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v4
|
||||||
|
-
|
||||||
|
name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: user/app:latest
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
```
|
||||||
|
|
||||||
## Customizing
|
## Customizing
|
||||||
|
|
||||||
### inputs
|
### inputs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user