Skip to content

dyve-agency/ghaction-docker-buildx

 
 

Repository files navigation

GitHub release GitHub marketplace Release workflow Test workflow Become a sponsor Paypal Donate

About

GitHub Action to set up Docker Buildx.

If you are interested, check out my other :octocat: GitHub Actions!

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@v1
        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 💬 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! 🙏

License

MIT. See LICENSE for more details.

Packages

No packages published

Languages

  • TypeScript 92.9%
  • JavaScript 4.3%
  • Dockerfile 2.8%