GitHub Action to set up Docker Buildx.
If you are interested, check out my other
GitHub Actions!
name: buildx
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 Docker Buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
buildx-version: latest
qemu-version: latest
-
name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
-
name: Run Buildx
run: |
docker buildx build \
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x \
--output "type=image,push=false" \
--file ./test/Dockerfile ./testFollowing inputs can be used as step.with keys
| Name | Type | Default | Description |
|---|---|---|---|
buildx-version |
String | latest |
Buildx version. Example: v0.3.0 |
qemu-version |
String | latest |
qemu-user-static version (Docker tag). Example: 4.2.0-7 |
Following outputs are available
| Name | Type | Description |
|---|---|---|
platforms |
String | Available platforms (comma separated) |
The following official docker environment variables are supported:
| Name | Type | Default | Description |
|---|---|---|---|
DOCKER_CONFIG |
String | ~/.docker |
The location of your client configuration files |
This action is only available for Linux virtual environments.
All kinds of contributions are welcome 🙌! The most basic way to show your support is to star 🌟 the project, or to raise issues 💬 You can also support this project by becoming a sponsor on GitHub 👏 or by making a Paypal donation to ensure this journey continues indefinitely! 🚀
Thanks again for your support, it is much appreciated! 🙏
MIT. See LICENSE for more details.
