Skip to content

bsord/ghaction-docker-buildx

 
 

Repository files navigation

GitHub release GitHub marketplace Test workflow Support me on Patreon Paypal Donate

✨ About

GitHub Action to set up Docker Buildx.

⚠️ Note: To use this action, you must have access to the GitHub Actions feature. GitHub Actions are currently only available in public beta. You can apply for the GitHub Actions beta here.

🚀 Usage

Below is a simple snippet to use this action. A live example is also available for this repository.

name: buildx

on:
  pull_request:
    branches: master
  push:
    branches: master
    tags:

jobs:
  buildx:
    runs-on: ubuntu-latest
    steps:
      -
        name: Checkout
        uses: actions/checkout@v1
      -
        name: Set up Docker Buildx
        id: buildx
        uses: crazy-max/ghaction-docker-buildx@master
        with:
          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 ./test

💅 Customizing

inputs

Following inputs can be used as step.with keys

Name Type Default Description
version String latest Buildx version. Example: v0.3.0

outputs

Following outputs are available

Name Type Description
platforms String Available platforms (comma separated)

⚠️ Limitation

This action is only available for Linux virtual environments.

🤝 How can I help ?

All kinds of contributions are welcome 🙌!
The most basic way to show your support is to star 🌟 the project, or to raise issues 💬
But we're not gonna lie to each other, I'd rather you buy me a beer or two 🍻!

Support me on Patreon Paypal Donate

📝 License

MIT. See LICENSE for more details.

About

:octocat: GitHub Action to set up Docker Buildx

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 96.1%
  • Dockerfile 3.9%