ideasonpurpose/docker-wordpress-dev

Multi-platform image

Closed this issue · 4 comments

Might be one-line? How to test?

     -  name: Build and push
        uses: docker/build-push-action@v2
        with:
          context: .
          platforms: linux/amd64,linux/arm64
          push: true
          tags: user/app:latest

https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md```

Not so fast there buddy...

Error from GitHub Actions:

error: multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")
Error: buildx failed with: error: multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")

You can build multi-platform images using the platforms input as described below.

💡 List of available platforms will be displayed and available through our setup-buildx action.
💡 If you want support for more platforms, you can use QEMU with our setup-qemu action.

https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md

Working as of 513eb34